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:
- 11:4e806bf0fb3d
- Parent:
- 10:c6100f1f2265
- Child:
- 12:8410a1f1df58
diff -r c6100f1f2265 -r 4e806bf0fb3d Xbee.cpp
--- a/Xbee.cpp Sun Nov 22 02:56:41 2015 +0000
+++ b/Xbee.cpp Sun Nov 22 03:07:30 2015 +0000
@@ -16,7 +16,6 @@
{
while(1)
{
- _xbee.putc('.');
_xbee.puts(buffer);
if(_xbee.getc() == '.')
{
@@ -27,14 +26,13 @@
void Xbee::Recv(char* buffer, const size_t& sz)
{
- while(_xbee.readable())
+ while(1)
{
- if(_xbee.getc() == '.')
+ if(_xbee.readable())
{
_xbee.gets(buffer,sz);
_xbee.putc('.');
break;
}
-
}
}
\ No newline at end of file