reinit our command as we start parsing

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/1105/head
Jesse Vincent 3 years ago
parent 1d3c7b3399
commit 80e7408e03
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -32,6 +32,8 @@ EventHandlerResult FocusSerial::afterEachCycle() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
uint8_t i = 0; uint8_t i = 0;
memset(command_, 0, sizeof(command_));
do { do {
command_[i++] = Runtime.serialPort().read(); command_[i++] = Runtime.serialPort().read();

Loading…
Cancel
Save