diff options
Diffstat (limited to 'wirish/comm')
-rw-r--r-- | wirish/comm/HardwareSerial.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wirish/comm/HardwareSerial.cpp b/wirish/comm/HardwareSerial.cpp index 93cf909..fc0d01e 100644 --- a/wirish/comm/HardwareSerial.cpp +++ b/wirish/comm/HardwareSerial.cpp @@ -101,6 +101,10 @@ void HardwareSerial::end(void) { usart_disable(usartNum); } +void HardwareSerial::flush(void) { + usart_clear_buffer(usartNum); +} + HardwareSerial Serial1(1); HardwareSerial Serial2(2); HardwareSerial Serial3(3); |