small update for RTC usermod
This commit is contained in:
@@ -42,7 +42,7 @@ class RTCUsermod : public Usermod {
|
|||||||
if (strip.isUpdating()) return;
|
if (strip.isUpdating()) return;
|
||||||
if (!disabled && toki.isTick()) {
|
if (!disabled && toki.isTick()) {
|
||||||
time_t t = toki.second();
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user