Browse Source

Removed excess XBee debugging

v_master
SRGDamia1 7 years ago
parent
commit
b67fcf8ffb
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      src/TinyGsmClientXBee.h

+ 3
- 5
src/TinyGsmClientXBee.h View File

@ -337,7 +337,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[0], buf[1], "\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
@ -518,9 +518,7 @@ public:
TINY_GSM_YIELD(); TINY_GSM_YIELD();
String return_string = stream.readStringUntil(c); String return_string = stream.readStringUntil(c);
return_string.trim(); return_string.trim();
if (String(c) == GSM_NL) {
DBG(return_string, "\r\n");
} else DBG(return_string, c);
// DBG(return_string, c);
return return_string; return return_string;
} }
@ -531,7 +529,7 @@ public:
bool commandMode(void) { bool commandMode(void) {
delay(guardTime); // cannot send anything for 1 second before entering command mode delay(guardTime); // cannot send anything for 1 second before entering command mode
streamWrite(GF("+++")); // enter command mode streamWrite(GF("+++")); // enter command mode
DBG("\r\n+++\r\n");
// DBG("\r\n+++\r\n");
return 1 == waitResponse(guardTime*2); return 1 == waitResponse(guardTime*2);
} }


Loading…
Cancel
Save