parent
aba4dc7c50
commit
04f5bdb843
@ -193,6 +193,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) {
|
||||||
@ -683,8 +684,10 @@ void WLED::handleConnection()
|
|||||||
|
|
||||||
if (now < 2000 && (!WLED_WIFI_CONFIGURED || apBehavior == AP_BEHAVIOR_ALWAYS))
|
if (now < 2000 && (!WLED_WIFI_CONFIGURED || apBehavior == AP_BEHAVIOR_ALWAYS))
|
||||||
return;
|
return;
|
||||||
if (lastReconnectAttempt == 0)
|
if (lastReconnectAttempt == 0) {
|
||||||
initConnection();
|
initConnection();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// reconnect WiFi to clear stale allocations if heap gets too low
|
// reconnect WiFi to clear stale allocations if heap gets too low
|
||||||
if (now - heapTime > 5000) {
|
if (now - heapTime > 5000) {
|
||||||
|
Loading…
Reference in New Issue
Block a user