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.
Fork of CROTUS_XBee by
Diff: xbee.cpp
- Revision:
- 5:b65dc52c463e
- Parent:
- 4:6ba5b06193d1
- Child:
- 6:1ea0d334c9de
--- a/xbee.cpp Mon Apr 03 20:10:01 2017 +0000 +++ b/xbee.cpp Mon Apr 03 20:52:25 2017 +0000 @@ -125,6 +125,7 @@ case AT_CMD_RSP_STATUS_TX_FAILURE: default: _xbeeConnection = 0; + printf("Bad AT CMD RSP\r\n"); break; } } @@ -170,6 +171,7 @@ break; default: _xbeeConnection = 0; + printf("Bad MODEM STATUS\r\n"); break; } } @@ -187,6 +189,8 @@ break; default: _xbeeConnection = 0; + printf("Bad TRANSMIT RSP \r\n"); + break; } } @@ -206,6 +210,7 @@ break; default: _xbeeConnection = 0; + printf("Bad COMMAND\r\n"); break; } } @@ -219,6 +224,7 @@ buffer[START_IDX] = _XbeeReadChar(); if (buffer[START_IDX] != START_BYTE){ _xbeeConnection = 0; + printf("Bad START BYTE\r\n"); continue; } buffer[LENGTH_MSB_IDX] = _XbeeReadChar(); @@ -230,6 +236,7 @@ } if (!_ValidateCheckSum(buffer)){ _xbeeConnection = 0; + printf("Bad CHK SUM\r\n"); continue; }