From a9a06a1e4e5c3c24d953b1fa63df24c6c7f61fca Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Wed, 29 Dec 2021 15:09:33 +0100 Subject: [PATCH] Fix for NTP sync on millis() rollover. --- wled00/wled.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wled00/wled.cpp b/wled00/wled.cpp index dd080d24..968ad304 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -120,6 +120,7 @@ void WLED::loop() if (lastMqttReconnectAttempt > millis()) { rolloverMillis++; lastMqttReconnectAttempt = 0; + ntpLastSyncTime = 0; strip.restartRuntime(); } if (millis() - lastMqttReconnectAttempt > 30000) {