File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1468,7 +1468,7 @@ bool RTK_WIFI::enable(bool enableESPNow,
1468
1468
if (enableSoftAP)
1469
1469
{
1470
1470
// Verify that the SSID is set
1471
- if (wifiSoftApSsid && strlen (wifiSoftApSsid) )
1471
+ if (wifiSoftApSsidSet )
1472
1472
{
1473
1473
// Allocate the soft AP SSID
1474
1474
if (!_apSsid)
@@ -1498,10 +1498,7 @@ bool RTK_WIFI::enable(bool enableESPNow,
1498
1498
if (enableStation)
1499
1499
{
1500
1500
// 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 )
1505
1502
{
1506
1503
systemPrintf (" ERROR: No valid SSID in settings\r\n " );
1507
1504
displayNoSSIDs (2000 );
You can’t perform that action at this time.
0 commit comments