Skip to content

Commit 94bbd4a

Browse files
committed
Update wifi settings before starting station
When running firmware update from Web Config, new WiFi settings come in before loop() can update these.
1 parent 8ad47b7 commit 94bbd4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,10 +1336,13 @@ bool RTK_WIFI::enable(bool enableESPNow,
13361336
// Update the station state
13371337
if (enableStation)
13381338
{
1339+
//Load the latest settings
1340+
wifiUpdateSettings();
1341+
13391342
// Verify that at least one SSID is set
13401343
if (wifiStationSsidSet == false)
13411344
{
1342-
systemPrintf("ERROR: No valid SSID in settings\r\n");
1345+
systemPrintf("ERROR: No valid SSID in settings to start WiFi station\r\n");
13431346
displayNoSSIDs(2000);
13441347
}
13451348
else

0 commit comments

Comments
 (0)