EOS char is \r not \n
This commit is contained in:
parent
3b392b6354
commit
dcd995f351
|
@ -167,7 +167,7 @@ void loop()
|
|||
static String inputString = "";
|
||||
|
||||
// Check if string terminator
|
||||
if (digit == '\n')
|
||||
if (digit == '\r')
|
||||
{
|
||||
// Make string conversion
|
||||
ReceivedCommand.raw = inputString.toInt();
|
||||
|
|
Loading…
Reference in New Issue