mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
fix presavecallback called twice if params in wifi
This commit is contained in:
+1
-1
@@ -1667,7 +1667,7 @@ void WiFiManager::handleWifiSave() {
|
||||
handleRequest();
|
||||
|
||||
// @todo use new callback for before paramsaves
|
||||
if ( _presavecallback != NULL) {
|
||||
if (!_paramsInWifi && _presavecallback != NULL) {
|
||||
_presavecallback();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user