How to clean up Serial port buffer

OK, so you could get called in the Serial.serialEvent routine with loads of characters,

Usually* not more than 64, which is the size of Serial ring buffer.

  • unless you tweak HardwareSerial.ccp source code.