Browse Source

Fix #511, ignore response to set timezone in ublox

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
dependabot/github_actions/actions/checkout-4
Sara Damiano 3 years ago
parent
commit
4fc428c945
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/TinyGsmClientUBLOX.h

+ 3
- 1
src/TinyGsmClientUBLOX.h View File

@ -193,7 +193,9 @@ class TinyGsmUBLOX : public TinyGsmModem<TinyGsmUBLOX>,
// Enable automatic time zome update // Enable automatic time zome update
sendAT(GF("+CTZU=1")); sendAT(GF("+CTZU=1"));
if (waitResponse(10000L) != 1) { return false; }
waitResponse(10000L);
// Ignore the response, in case the network doesn't support it.
// if (waitResponse(10000L) != 1) { return false; }
SimStatus ret = getSimStatus(); SimStatus ret = getSimStatus();
// if the sim isn't ready and a pin has been provided, try to unlock the sim // if the sim isn't ready and a pin has been provided, try to unlock the sim


Loading…
Cancel
Save