diff --git a/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp b/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp index d209beb9..dd5ee3c4 100644 --- a/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp +++ b/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp @@ -32,6 +32,8 @@ EventHandlerResult FocusSerial::afterEachCycle() { return EventHandlerResult::OK; uint8_t i = 0; + memset(command_, 0, sizeof(command_)); + do { command_[i++] = Runtime.serialPort().read();