comparison not assignment
This commit is contained in:
parent
07bf3008ff
commit
bbf21e2e66
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue