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:
- 6:9f2db7a38f19
- Parent:
- 5:d14636b861ff
- Child:
- 7:922bf2a611b1
--- a/Xbee.cpp Sun Nov 22 02:16:32 2015 +0000 +++ b/Xbee.cpp Sun Nov 22 02:26:41 2015 +0000 @@ -23,7 +23,10 @@ void Xbee::Recv(char* buffer, const size_t& sz) { - while(!_xbee.readable()); - _xbee.gets(buffer,sz); - _xbee.puts("."); + while(_xbee.readable()) + { + _xbee.gets(buffer,sz); + _xbee.putc('.'); + } + } \ No newline at end of file