PaulStoffregen / PS2Keyboard

PS/2 Keyboard Library for Arduino
http://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
147 stars 57 forks source link

Added flush function #3

Closed Simsso closed 8 years ago

Simsso commented 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.

PaulStoffregen commented 8 years ago

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.

Simsso commented 8 years ago

Alright - makes sense. Thank you!