Skip to content

Commit 71edfed

Browse files
committed
Go from STATE_NTPSERVER_SYNC to STATE_NTPSERVER_NO_SYNC
if rtcSyncd is false - i.e. the user has changed the time zone. The firmware will stop responding to NTP requests until the RTC is synced again.
1 parent d95eefe commit 71edfed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Firmware/RTK_Everywhere/States.ino

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,12 @@ void stateUpdate()
591591
break;
592592

593593
case (STATE_NTPSERVER_SYNC): {
594-
// Do nothing - display only
594+
if (!rtcSyncd)
595+
{
596+
if (settings.debugNtp)
597+
systemPrintln("NTP Server RTC sync lost");
598+
changeState(STATE_NTPSERVER_NO_SYNC);
599+
}
595600
}
596601
break;
597602

0 commit comments

Comments
 (0)