1
0
Fork 0

message state should be global

This commit is contained in:
Kevin Matz 2019-07-30 13:18:40 -04:00
parent fef6a9ed8d
commit 07bf3008ff
1 changed files with 2 additions and 2 deletions

View File

@ -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