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:
- 9:c0955550ca13
- Parent:
- 8:6fd7091e1478
- Child:
- 10:c6100f1f2265
diff -r 6fd7091e1478 -r c0955550ca13 Xbee.cpp
--- a/Xbee.cpp Sun Nov 22 02:39:01 2015 +0000
+++ b/Xbee.cpp Sun Nov 22 02:42:04 2015 +0000
@@ -14,14 +14,14 @@
void Xbee::Send(const char* buffer)
{
- while(!_xbee.readable())
+ while(1)
{
+ _xbee.putc('.');
+ _xbee.puts(buffer);
if(_xbee.getc() == '.')
{
break;
}
- _xbee.puts(buffer);
- wait(0.05);
}
}
@@ -35,5 +35,4 @@
}
_xbee.putc('.');
}
-
}
\ No newline at end of file