XBee-mbed library Forked from http://mbed.org/users/okini3939/notebook/xbee-mbed/

Fork of XBee by Suga koubou

Files at this revision

API Documentation at this revision

Comitter:
johnb
Date:
Wed Jan 08 23:43:40 2014 +0000
Parent:
8:7a12c71fb8c7
Commit message:
Merge David Dollar's changes - http://mbed.org/users/ddollar/code/XBee/rev/73d051b01344

Changed in this revision

XBee.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 7a12c71fb8c7 -r 9d8397c69167 XBee.cpp
--- a/XBee.cpp	Wed Jan 08 23:38:48 2014 +0000
+++ b/XBee.cpp	Wed Jan 08 23:43:40 2014 +0000
@@ -649,6 +649,10 @@
     _complete = false;
     _errorCode = NO_ERROR;
     _checksum = 0;
+    _apiId = 0;
+    _msbLength = 0;
+    _lsbLength = 0;
+    _frameLength = 0;
 }
 
 void XBeeResponse::reset() {
@@ -667,6 +671,7 @@
 void XBee::resetResponse() {
     _pos = 0;
     _epos = 0;
+    _rts = false;
     _escape = false;
     _checksumTotal = 0;
     _response.reset();
@@ -676,6 +681,7 @@
     _pos = 0;
     _epos = 0;
     _escape = false;
+    _rts = false;
     _checksumTotal = 0;
     _nextFrameId = 0;