Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ArduinoAPI by
Diff: ArduinoSerial.cpp
- Revision:
- 6:926a4df8c0fb
- Parent:
- 5:8072d40c7f3c
diff -r 8072d40c7f3c -r 926a4df8c0fb ArduinoSerial.cpp
--- a/ArduinoSerial.cpp Sat Mar 14 10:15:36 2015 +0000
+++ b/ArduinoSerial.cpp Sat Mar 28 14:45:08 2015 +0000
@@ -55,6 +55,7 @@
void ArduinoSerial::flush(void)
{
+ wait_ms(5);
memset(&m_rx_buffer, 0, sizeof(m_rx_buffer));
}
