Reset message buffer every time a newline is found
This commit is contained in:
@@ -52,7 +52,6 @@ bool gatewayTransportAvailable() {
|
||||
if (inChar == '\n') {
|
||||
_serialInputString[_serialInputPos] = 0;
|
||||
bool ok = protocolParse(_serialMsg, _serialInputString);
|
||||
if (ok)
|
||||
_serialInputPos = 0;
|
||||
return ok;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user