Skip to content

Commit 8ad47b7

Browse files
committed
After settings change, avoid WiFi restart if connected
1 parent c9316e5 commit 8ad47b7

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
@@ -1123,7 +1123,10 @@ void wifiUpdateSettings()
11231123

11241124
// Remember the change in SSID values
11251125
wifiStationSsidSet = ssidSet;
1126-
wifiStationRestart = ssidSet;
1126+
1127+
//If WiFi currently has connectivity, don't restart it
1128+
if(networkHasInternet() == false)
1129+
wifiStationRestart = ssidSet;
11271130

11281131
// Determine if the WiFi soft AP SSID string is present
11291132
wifiSoftApSsidSet = (wifiSoftApSsid && strlen(wifiSoftApSsid));

0 commit comments

Comments
 (0)