1
0
Fork 0

comparison not assignment

This commit is contained in:
Kevin Matz 2019-07-30 13:19:05 -04:00
parent 07bf3008ff
commit bbf21e2e66
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ void readCommand() {
delay(10); // small delay to allow input buffer to fill
int c = Serial.read();
if ( c = -1 ) { // no bytes read
if ( c == -1 ) { // no bytes read
break;
}
if (!isAscii(c)) {