I'm new to "Arduino" but the Serial.flush() function does not appear to work.
From :
http://www.pjrc.com/teensy/td_serial.html
-----
Serial.flush()
Discard any received data that has not been read.
-----
Even if I call Serial.flush() before a Serial.read(), the Serial.read() will still return data.
Even if I call Serial.flush() before Serial.available(), Serial.available will still return number of available octets assuming Serial.flush() does nothing.
//Hope I didn't miss a memo about flush() not working yet. At the moment just discarding using Serial.read().
From :
http://www.pjrc.com/teensy/td_serial.html
-----
Serial.flush()
Discard any received data that has not been read.
-----
Even if I call Serial.flush() before a Serial.read(), the Serial.read() will still return data.
Even if I call Serial.flush() before Serial.available(), Serial.available will still return number of available octets assuming Serial.flush() does nothing.
//Hope I didn't miss a memo about flush() not working yet. At the moment just discarding using Serial.read().