Fix for NTP sync on millis() rollover.
This commit is contained in:
parent
5f73725b8f
commit
a9a06a1e4e
@ -120,6 +120,7 @@ void WLED::loop()
|
||||
if (lastMqttReconnectAttempt > millis()) {
|
||||
rolloverMillis++;
|
||||
lastMqttReconnectAttempt = 0;
|
||||
ntpLastSyncTime = 0;
|
||||
strip.restartRuntime();
|
||||
}
|
||||
if (millis() - lastMqttReconnectAttempt > 30000) {
|
||||
|
Loading…
Reference in New Issue
Block a user