From 8dcb05da2622e284013250f2a54733a2c58b3e16 Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 15 Oct 2024 11:33:11 +0200 Subject: [PATCH] catM1: do not rely on time stored in the modem --- src/CatM1ConnectionHandler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CatM1ConnectionHandler.cpp b/src/CatM1ConnectionHandler.cpp index 439ffee..4bab19f 100644 --- a/src/CatM1ConnectionHandler.cpp +++ b/src/CatM1ConnectionHandler.cpp @@ -46,7 +46,10 @@ CatM1ConnectionHandler::CatM1ConnectionHandler(const char * pin, const char * ap unsigned long CatM1ConnectionHandler::getTime() { - return GSM.getTime(); + /* It is not safe to call GSM.getTime() since we don't know if modem internal + * RTC is in sync with current time. + */ + return 0; } /******************************************************************************