Good point. I didn't focus on the PC code. Still, he says it works on one device but not the other.
I was about ready to suggest he got rid of this line:Code: [Select] Serial.flush();But I can't quite prove to my satisfaction that it is the cause of it.
on a pre-1.0 environment, that will clear the send buffer
Waits for the transmission of outgoing serial data to complete. (Prior to Arduino 1.0, this instead removed any buffered incoming serial data.)