message state should be global
This commit is contained in:
parent
fef6a9ed8d
commit
07bf3008ff
|
@ -175,12 +175,12 @@ int nibble2number(int n) {
|
|||
}
|
||||
|
||||
|
||||
bool inMessage = false;
|
||||
int index = 0;
|
||||
//
|
||||
// read command from serial port
|
||||
//
|
||||
void readCommand() {
|
||||
bool inMessage = false;
|
||||
int i = 0;
|
||||
while (Serial.available()) {
|
||||
delay(10); // small delay to allow input buffer to fill
|
||||
|
||||
|
|
Loading…
Reference in New Issue