Tiny fix to XBee debug

This commit is contained in:
SRGDamia1
2017-06-07 17:17:34 -04:00
parent 4cbdd941cb
commit 3b6f4b7f59

View File

@@ -263,7 +263,7 @@ public:
char buf[2] = {0}; // Set up buffer for response char buf[2] = {0}; // Set up buffer for response
buf[0] = streamRead(); buf[0] = streamRead();
buf[1] = streamRead(); buf[1] = streamRead();
DBG(buf, "\n"); DBG(buf[0], buf[1], "\n");
exitCommand(); exitCommand();
int intr = strtol(buf, 0, 16); int intr = strtol(buf, 0, 16);
if (beeType == S6B) return -93 + intr; // the maximum sensitivity is -93dBm if (beeType == S6B) return -93 + intr; // the maximum sensitivity is -93dBm