File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -455,25 +455,22 @@ void stateUpdate()
455
455
systemWrite (incomingSettings[x]);
456
456
systemPrintln ();
457
457
458
+ // Create temporary copy of Settings, so that we can check if they change while parsing
459
+ // Useful for detecting when we need to change WiFi station settings
458
460
webServerSettingsClone ();
461
+
459
462
parseIncomingSettings ();
463
+
460
464
settings.gnssConfiguredOnce = false ; // On the next boot, reapply all settings
461
465
settings.gnssConfiguredBase = false ;
462
466
settings.gnssConfiguredRover = false ;
463
467
recordSystemSettings (); // Record these settings to unit
464
- changed = webServerSettingsCheckAndFree ();
465
468
466
469
// Clear buffer
467
470
incomingSettingsSpot = 0 ;
468
471
memset (incomingSettings, 0 , AP_CONFIG_SETTING_SIZE);
469
472
470
473
currentlyParsingData = false ; // Allow new data from websocket
471
- if (changed)
472
- {
473
- // Restart the web server if the WiFi parameters changed
474
- webServerStop ();
475
- changeState (STATE_WEB_CONFIG_NOT_STARTED); // Return to rover mode to avoid being in fixed base mode
476
- }
477
474
}
478
475
}
479
476
You can’t perform that action at this time.
0 commit comments