Add UDP sync of system time

This commit is contained in:
cschwinne
2021-05-27 02:02:02 +02:00
parent 6c8bf090fe
commit c2892d7887
7 changed files with 95 additions and 32 deletions

View File

@@ -14,7 +14,7 @@ class RTCUsermod : public Usermod {
void setup() {
time_t rtcTime = RTC.get();
if (rtcTime) {
toki.setTime(rtcTime,0);
toki.setTime(rtcTime,TOKI_NO_MS_ACCURACY,TOKI_TS_RTC);
updateLocalTime();
} else {
if (!RTC.chipPresent()) disabled = true; //don't waste time if H/W error