Small fix to BG96, remove debug
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user