Skip to content

Commit

Permalink
catM1: do not rely on time stored in the modem
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Oct 15, 2024
1 parent dcd1616 commit 8dcb05d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CatM1ConnectionHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/******************************************************************************
Expand Down

0 comments on commit 8dcb05d

Please sign in to comment.