From 40bea36f58dee1903f3d192f553e44967b86a358 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 2 Jan 2023 18:04:27 +0100 Subject: [PATCH] small update for RTC usermod --- usermods/RTC/usermod_rtc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usermods/RTC/usermod_rtc.h b/usermods/RTC/usermod_rtc.h index 50a269d9..4a1768d9 100644 --- a/usermods/RTC/usermod_rtc.h +++ b/usermods/RTC/usermod_rtc.h @@ -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 } }