Skip to content

Commit ce6915a

Browse files
committed
Reset message buffer every time a newline is found
1 parent c7efee3 commit ce6915a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/MySensors/core/MyGatewayTransportSerial.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ bool gatewayTransportAvailable() {
5252
if (inChar == '\n') {
5353
_serialInputString[_serialInputPos] = 0;
5454
bool ok = protocolParse(_serialMsg, _serialInputString);
55-
if (ok)
56-
_serialInputPos = 0;
55+
_serialInputPos = 0;
5756
return ok;
5857
} else {
5958
// add it to the inputString:

0 commit comments

Comments
 (0)