Closed Simsso closed 8 years ago
It's more readable to call static void flush() instead of static int read() if the data doesn't matter and it's just necessary to set static bool available() back to false.
static void flush()
static int read()
static bool available()
false
I've added this, but renamed to clear().
We need to avoid using flush(), since Arduino defines "flush" to mean waiting for output to transmit.
Alright - makes sense. Thank you!
It's more readable to call
static void flush()
instead ofstatic int read()
if the data doesn't matter and it's just necessary to setstatic bool available()
back tofalse
.