Skip to content

Commit c7ca8ee

Browse files
committed
catM1: do not rely on time stored in the modem
1 parent c79c71e commit c7ca8ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CatM1ConnectionHandler.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ CatM1ConnectionHandler::CatM1ConnectionHandler(
5151

5252
unsigned long CatM1ConnectionHandler::getTime()
5353
{
54-
return GSM.getTime();
54+
/* It is not safe to call GSM.getTime() since we don't know if modem internal
55+
* RTC is in sync with current time.
56+
*/
57+
return 0;
5558
}
5659

5760
/******************************************************************************

0 commit comments

Comments
 (0)