Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 86040e7

Browse files
authored
Merge pull request #23 from hmueller01/reset_cleanup
cleanup reset code
2 parents 6e36702 + 385997a commit 86040e7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/ESPAsync_WiFiManager_Lite.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,6 @@ class ESPAsync_WiFiManager_Lite
11551155
setForcedCP(false);
11561156

11571157
// Delay then reset the ESP8266 after save data
1158-
delay(1000);
11591158
resetFunc();
11601159
}
11611160

@@ -1169,7 +1168,6 @@ class ESPAsync_WiFiManager_Lite
11691168
setForcedCP(true);
11701169

11711170
// Delay then reset the ESP8266 after save data
1172-
delay(1000);
11731171
resetFunc();
11741172
}
11751173

@@ -2525,11 +2523,7 @@ class ESPAsync_WiFiManager_Lite
25252523
drd->loop();
25262524
#endif
25272525

2528-
#if ESP8266
2529-
ESP.reset();
2530-
#else
2531-
ESP.restart();
2532-
#endif
2526+
resetFunc();
25332527

25342528
#endif
25352529
}
@@ -2908,8 +2902,7 @@ class ESPAsync_WiFiManager_Lite
29082902

29092903
// TO DO : what command to reset
29102904
// Delay then reset the board after save data
2911-
delay(1000);
2912-
resetFunc(); //call reset
2905+
resetFunc();
29132906
}
29142907
} // if (server)
29152908
}

0 commit comments

Comments
 (0)