What exactly do you think that "while (Serial.available()){ }" is doing?
To me it looks like you wait until there is nothing available and then try to read() something. Doesn't seem quite right.
Steve
What exactly do you think that "while (Serial.available()){ }" is doing?
To me it looks like you wait until there is nothing available and then try to read() something. Doesn't seem quite right.
Steve