Skip to content

Commit 176b21b

Browse files
committed
Don't restart web server with settings change
1 parent d913d65 commit 176b21b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Firmware/RTK_Everywhere/States.ino

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -455,25 +455,22 @@ void stateUpdate()
455455
systemWrite(incomingSettings[x]);
456456
systemPrintln();
457457

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
458460
webServerSettingsClone();
461+
459462
parseIncomingSettings();
463+
460464
settings.gnssConfiguredOnce = false; // On the next boot, reapply all settings
461465
settings.gnssConfiguredBase = false;
462466
settings.gnssConfiguredRover = false;
463467
recordSystemSettings(); // Record these settings to unit
464-
changed = webServerSettingsCheckAndFree();
465468

466469
// Clear buffer
467470
incomingSettingsSpot = 0;
468471
memset(incomingSettings, 0, AP_CONFIG_SETTING_SIZE);
469472

470473
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-
}
477474
}
478475
}
479476

0 commit comments

Comments
 (0)