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.print(' ');
CMD_PORT.println(gauges[i].sweepEnabled ? 1 : 0); CMD_PORT.println(gauges[i].sweepEnabled ? 1 : 0);
} }
sendReply("OK");
return true; return true;
} }
return false; return false;
@@ -508,6 +509,7 @@ void readCommands() {
rxLine += c; rxLine += c;
if (rxLine.length() > 120) { if (rxLine.length() > 120) {
rxLine = ""; rxLine = "";
sendReply("ERR TOO_LONG");
} }
} }
} }