From 4fc428c9456aabb377f4d4c345648c9e2a6147e3 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Wed, 28 Apr 2021 15:30:58 -0400 Subject: [PATCH] Fix #511, ignore response to set timezone in ublox Signed-off-by: Sara Damiano --- src/TinyGsmClientUBLOX.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TinyGsmClientUBLOX.h b/src/TinyGsmClientUBLOX.h index ce27d99..6a95a6d 100644 --- a/src/TinyGsmClientUBLOX.h +++ b/src/TinyGsmClientUBLOX.h @@ -193,7 +193,9 @@ class TinyGsmUBLOX : public TinyGsmModem, // Enable automatic time zome update 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(); // if the sim isn't ready and a pin has been provided, try to unlock the sim