diff --git a/src/TinyGsmClientBG96.h b/src/TinyGsmClientBG96.h index 67cbe43..6b02890 100644 --- a/src/TinyGsmClientBG96.h +++ b/src/TinyGsmClientBG96.h @@ -202,8 +202,8 @@ class TinyGsmBG96 : public TinyGsmModem, 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(); } diff --git a/src/TinyGsmTCP.tpp b/src/TinyGsmTCP.tpp index 09b3ed2..4517184 100644 --- a/src/TinyGsmTCP.tpp +++ b/src/TinyGsmTCP.tpp @@ -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); }