Buffer overflow and missing return code added

This commit is contained in:
2026-04-14 00:26:48 +02:00
parent e521ef8a2a
commit 2c81ddfd6b

View File

@@ -467,6 +467,7 @@ bool parsePosQuery(const String& line) {
CMD_PORT.print(' ');
CMD_PORT.println(gauges[i].sweepEnabled ? 1 : 0);
}
sendReply("OK");
return true;
}
return false;
@@ -508,6 +509,7 @@ void readCommands() {
rxLine += c;
if (rxLine.length() > 120) {
rxLine = "";
sendReply("ERR TOO_LONG");
}
}
}