File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,8 @@ static WiFiMulti *wifiMulti;
378
378
// Enable TCP connections
379
379
void menuWiFi ()
380
380
{
381
+ bool wifiRestartRequested; // Restart WiFi if user changes anything
382
+
381
383
while (1 )
382
384
{
383
385
networkDisplayInterface (NETWORK_WIFI_STATION);
@@ -419,12 +421,13 @@ void menuWiFi()
419
421
}
420
422
421
423
// If we are modifying the SSID table, force restart of WiFi
422
- restartWiFi = true ;
424
+ wifiRestartRequested = true ;
425
+ wifiFailedConnectionAttempts = 0 ;
423
426
}
424
427
else if (incoming == ' a' )
425
428
{
426
429
settings.wifiConfigOverAP ^= 1 ;
427
- restartWiFi = true ;
430
+ wifiRestartRequested = true ;
428
431
}
429
432
else if (incoming == ' c' )
430
433
{
@@ -447,6 +450,7 @@ void menuWiFi()
447
450
strcpy (settings.wifiNetworks [x].password , " " );
448
451
}
449
452
453
+ restartWiFi = wifiRestartRequested;
450
454
clearBuffer (); // Empty buffer of any newline chars
451
455
}
452
456
You can’t perform that action at this time.
0 commit comments