Xiaofei Qiu / Xbee
Revision:
12:8410a1f1df58
Parent:
11:4e806bf0fb3d
Child:
13:01e5b1744921
diff -r 4e806bf0fb3d -r 8410a1f1df58 Xbee.cpp
--- a/Xbee.cpp	Sun Nov 22 03:07:30 2015 +0000
+++ b/Xbee.cpp	Sun Nov 22 03:15:06 2015 +0000
@@ -16,6 +16,7 @@
 {
     while(1)
     {
+        _xbee.putc('.')
         _xbee.puts(buffer);
         if(_xbee.getc() == '.')
         {
@@ -30,6 +31,7 @@
     {
         if(_xbee.readable())
         {
+            if(_xbee.getc()=='.')
             _xbee.gets(buffer,sz);
             _xbee.putc('.');
             break;