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

@ -40,11 +40,11 @@ EventHandlerResult FocusSerial::afterEachCycle() {
} while (command_[i - 1] != SEPARATOR } while (command_[i - 1] != SEPARATOR
&& i < sizeof(command_) && i < sizeof(command_)
&& Runtime.serialPort().available() && Runtime.serialPort().available()
&& (Runtime.serialPort().peek() != NEWLINE )); && (Runtime.serialPort().peek() != NEWLINE));
// If this was a command with a space-delimited payload, strip the space delimiter off // If this was a command with a space-delimited payload, strip the space delimiter off
if (command_[i - 1] == SEPARATOR ) if (command_[i - 1] == SEPARATOR)
command_[i - 1] = '\0'; command_[i - 1] = '\0';

Loading…
Cancel
Save