Skip to content

Commit a237733

Browse files
committed
WiFi: Switch to using *SsidSet variables set in wifiUpdateSettings
1 parent 236d189 commit a237733

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ bool RTK_WIFI::enable(bool enableESPNow,
14681468
if (enableSoftAP)
14691469
{
14701470
// Verify that the SSID is set
1471-
if (wifiSoftApSsid && strlen(wifiSoftApSsid))
1471+
if (wifiSoftApSsidSet)
14721472
{
14731473
// Allocate the soft AP SSID
14741474
if (!_apSsid)
@@ -1498,10 +1498,7 @@ bool RTK_WIFI::enable(bool enableESPNow,
14981498
if (enableStation)
14991499
{
15001500
// Verify that at least one SSID is set
1501-
for (authIndex = 0; authIndex < MAX_WIFI_NETWORKS; authIndex++)
1502-
if (strlen(settings.wifiNetworks[authIndex].ssid))
1503-
break;
1504-
if (authIndex >= MAX_WIFI_NETWORKS)
1501+
if (wifiStationSsidSet == false)
15051502
{
15061503
systemPrintf("ERROR: No valid SSID in settings\r\n");
15071504
displayNoSSIDs(2000);

0 commit comments

Comments
 (0)