Browse Source

Small fix to BG96, remove debug

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
v_master
Sara Damiano 5 years ago
parent
commit
2cd2806ead
2 changed files with 2 additions and 3 deletions
  1. +2
    -2
      src/TinyGsmClientBG96.h
  2. +0
    -1
      src/TinyGsmTCP.tpp

+ 2
- 2
src/TinyGsmClientBG96.h 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();
}


+ 0
- 1
src/TinyGsmTCP.tpp 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);
}


Loading…
Cancel
Save