Merge pull request #1178 from keyboardio/focus/iseol-fix

FocusSerial: isEOL() should return true when there's no more data
pull/1181/head
Jesse Vincent 3 years ago committed by GitHub
commit ceb361fa3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,7 +104,9 @@ class FocusSerial : public kaleidoscope::Plugin {
}
bool isEOL() {
return Runtime.serialPort().peek() == NEWLINE;
int i = Runtime.serialPort().peek();
return (i == NEWLINE || i == -1);
}

Loading…
Cancel
Save