From 2cd2806eadec06310aeb68dc1b03109c7e5395a1 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Fri, 28 Feb 2020 13:09:39 -0500 Subject: [PATCH] Small fix to BG96, remove debug Signed-off-by: Sara Damiano --- src/TinyGsmClientBG96.h | 4 ++-- src/TinyGsmTCP.tpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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); }