From 385997a08c166b8b25c8140e588b8681faad7052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Mu=CC=88ller?= Date: Fri, 23 Dec 2022 11:23:51 +0100 Subject: [PATCH] always use resetFunc(), only one dely in resetFunc() --- src/ESPAsync_WiFiManager_Lite.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/ESPAsync_WiFiManager_Lite.h b/src/ESPAsync_WiFiManager_Lite.h index cc46198..c3214a1 100644 --- a/src/ESPAsync_WiFiManager_Lite.h +++ b/src/ESPAsync_WiFiManager_Lite.h @@ -1155,7 +1155,6 @@ class ESPAsync_WiFiManager_Lite setForcedCP(false); // Delay then reset the ESP8266 after save data - delay(1000); resetFunc(); } @@ -1169,7 +1168,6 @@ class ESPAsync_WiFiManager_Lite setForcedCP(true); // Delay then reset the ESP8266 after save data - delay(1000); resetFunc(); } @@ -2525,11 +2523,7 @@ class ESPAsync_WiFiManager_Lite drd->loop(); #endif -#if ESP8266 - ESP.reset(); -#else - ESP.restart(); -#endif + resetFunc(); #endif } @@ -2908,8 +2902,7 @@ class ESPAsync_WiFiManager_Lite // TO DO : what command to reset // Delay then reset the board after save data - delay(1000); - resetFunc(); //call reset + resetFunc(); } } // if (server) }