Reserve USB KISS framing before normal parsers consume it

This commit is contained in:
mikecarper committed 2026-10-26 17:49:20 -07:00
1 parent ff51126508
commit 1aef6de288
20 files changed
+624 -10

No files matched your search

+4
View File
@@ -375,6 +375,10 @@ void loop() {
len = 0;
}
while (usb_ready && console.available() && len < sizeof(command)-1) {
#if MESH_ENABLE_HOST_KISS
// Bytes may arrive after the loop-top KISS poll. Preserve its first FEND.
if (mesh::hostkiss::usbInputReserved(console.peek())) break;
#endif
char c = console.read();
if (c != '\n') {
command[len++] = c;