small update for RTC usermod

This commit is contained in:
Frank
2023-01-02 18:04:27 +01:00
parent e85c90dc11
commit 40bea36f58

View File

@@ -42,7 +42,7 @@ class RTCUsermod : public Usermod {
if (strip.isUpdating()) return;
if (!disabled && toki.isTick()) {
time_t t = toki.second();
if (t != RTC.get()) RTC.set(t); //set RTC to NTP/UI-provided value
if (abs(t - RTC.get())> 2) RTC.set(t); //set RTC to NTP/UI-provided value - WLEDMM allow up to 3 sec deviation
}
}