diff --git a/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp b/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp index f8669d00..63b4c25e 100644 --- a/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp +++ b/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp @@ -90,9 +90,13 @@ bool FocusSerial::handleHelp(const char *command, } EventHandlerResult FocusSerial::onFocusEvent(const char *command) { - if (handleHelp(command, PSTR("help\nplugins"))) + if (handleHelp(command, PSTR("help\ndevice.reset\nplugins"))) return EventHandlerResult::OK; + if (strcmp_P(command, PSTR("device.reset")) == 0) { + Runtime.device().rebootBootloader(); + return EventHandlerResult::EVENT_CONSUMED; + } if (strcmp_P(command, PSTR("plugins")) == 0) { kaleidoscope::Hooks::onNameQuery(); return EventHandlerResult::EVENT_CONSUMED;