# HG changeset patch # User William Welliver # Date 1688850004 14400 # Sat Jul 08 17:00:04 2023 -0400 # Node ID 5977ce9d0dcb2d4bba6ec15c6fa57ec246979f07 # Parent 6dcc64e564ef723b9e45935f082afe7eca2f1701 pet the watchdog periodically diff --git a/firmware/remote_sensors_picow/lib/WiFiManager_RP2040W/src/WiFiManager_RP2040W_Impl.h b/firmware/remote_sensors_picow/lib/WiFiManager_RP2040W/src/WiFiManager_RP2040W_Impl.h --- a/firmware/remote_sensors_picow/lib/WiFiManager_RP2040W/src/WiFiManager_RP2040W_Impl.h +++ b/firmware/remote_sensors_picow/lib/WiFiManager_RP2040W/src/WiFiManager_RP2040W_Impl.h @@ -427,7 +427,7 @@ { //delay(100); delay(200); - + watchdog_update(); if (WiFi.status() == WL_CONNECTED) { float waited = (millis() - startedAt); @@ -497,6 +497,7 @@ while (_configPortalTimeout == 0 || millis() < _configPortalStart + _configPortalTimeout) { + watchdog_update(); //DNS dnsServer->processNextRequest(); //HTTP @@ -680,6 +681,8 @@ // In ESP32, WiFi.waitForConnectResult() @return wl_status_t (0-255) // So, using int for connRes to be safe //int connRes = WiFi.waitForConnectResult(); + watchdog_update(); + WiFi.waitForConnectResult(); float waited = (millis() - startedAt); @@ -700,6 +703,7 @@ while (keepConnecting) { + watchdog_update(); status = WiFi.status(); if (millis() > start + _connectTimeout) {