global-functions: $IsTimeSync: add (one time) warning on failed ntp sync

This commit is contained in:
Christian Hesse 2024-05-08 14:25:02 +02:00
parent fb7170f312
commit 2745597b93

View file

@ -693,6 +693,7 @@
:return false; :return false;
} }
$LogPrintOnce warning $0 ("The ntp client is configured, but did not sync.");
:set IsTimeSyncResetNtp $Uptime; :set IsTimeSyncResetNtp $Uptime;
/system/ntp/client/set enabled=no; /system/ntp/client/set enabled=no;
:delay 20ms; :delay 20ms;