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.
Diff: Xbee.cpp
- Revision:
- 33:70e9e5e5f9d5
- Parent:
- 32:a9ba94b949fd
- Child:
- 37:8eba82309257
diff -r a9ba94b949fd -r 70e9e5e5f9d5 Xbee.cpp --- a/Xbee.cpp Sat Nov 28 14:37:55 2015 +0000 +++ b/Xbee.cpp Sat Nov 28 14:42:37 2015 +0000 @@ -28,7 +28,6 @@ } if(_xbee.readable()) { - //Flush(); break; } } @@ -47,17 +46,8 @@ if(_xbee.getc()=='\0'); { buffer = _xbee.getc(); - //Flush(); } break; } } -} - -void Xbee::Flush() -{ - while(_xbee.readable()) - { - _xbee.getc(); - } } \ No newline at end of file