Closed PhiJu5 closed 8 years ago
size_t write(uint8_t byte) { writeByte(byte); return 1; } void flush() { flushOutput(); }
void write(uint8_t byte) { writeByte(byte); } void flush() { flushInput(); }
Shouln't void flush() { flushInput(); } be void flush() { flushOutput(); } ?
Before Arduino 1.0, the flush() function discarded input. This code does the post-1.0 behavior on Arduino 1.0 and later, and the pre-1.0 behavior on old versions.
if ARDUINO >= 100
else
10
Shouln't void flush() { flushInput(); } be void flush() { flushOutput(); } ?