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()) {
|
if (lastMqttReconnectAttempt > millis()) {
|
||||||
rolloverMillis++;
|
rolloverMillis++;
|
||||||
lastMqttReconnectAttempt = 0;
|
lastMqttReconnectAttempt = 0;
|
||||||
|
ntpLastSyncTime = 0;
|
||||||
strip.restartRuntime();
|
strip.restartRuntime();
|
||||||
}
|
}
|
||||||
if (millis() - lastMqttReconnectAttempt > 30000) {
|
if (millis() - lastMqttReconnectAttempt > 30000) {
|
||||||
|
Loading…
Reference in New Issue
Block a user