Small fix to BG96, remove debug

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2020-02-28 13:09:39 -05:00
parent 379d6e2a8a
commit 2cd2806ead
2 changed files with 2 additions and 3 deletions

View File

@@ -202,8 +202,8 @@ class TinyGsmBG96 : public TinyGsmModem<TinyGsmBG96>,
bool restartImpl() {
if (!testAT()) { return false; }
sendAT(GF("+CFUN=1,1"));
if (waitResponse(60000L, GF("POWERED DOWN")) != 1) { return false; }
waitResponse(5000L, GF("RDY"));
if (waitResponse(10000L, GF("OK")) != 1) { return false; }
waitResponse(10000L, GF("APP RDY"));
return init();
}

View File

@@ -274,7 +274,6 @@ class TinyGsmTCP {
uint32_t startMillis = millis();
while (sock_available > 0 && (millis() - startMillis < maxWaitMs)) {
rx.clear();
DBG(TinyGsmMin((uint16_t)rx.free(), sock_available));
at->modemRead(TinyGsmMin((uint16_t)rx.free(), sock_available), mux);
}