File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -481,7 +481,6 @@ function sendData() {
481
481
//Check boxes, radio buttons
482
482
//Remove file manager files
483
483
clsElements = document . querySelectorAll ( ".form-check-input:not(.fileManagerCheck), .form-radio" ) ;
484
-
485
484
for ( let x = 0 ; x < clsElements . length ; x ++ ) {
486
485
settingCSV += clsElements [ x ] . id + "," + clsElements [ x ] . checked + "," ;
487
486
}
Original file line number Diff line number Diff line change @@ -2060,6 +2060,10 @@ void displayWiFiConfig()
2060
2060
else if (WiFi.getMode () == WIFI_AP)
2061
2061
snprintf (mySSID, sizeof (mySSID), " %s" , " RTK Config" );
2062
2062
2063
+ // If we are in AP+STA mode, still display RTK Config
2064
+ else if (WiFi.getMode () == WIFI_AP_STA)
2065
+ snprintf (mySSID, sizeof (mySSID), " %s" , " RTK Config" );
2066
+
2063
2067
else
2064
2068
snprintf (mySSID, sizeof (mySSID), " %s" , " Error" );
2065
2069
}
@@ -2093,7 +2097,7 @@ void displayWiFiConfig()
2093
2097
2094
2098
#ifdef COMPILE_AP
2095
2099
IPAddress myIpAddress;
2096
- if (WiFi.getMode () == WIFI_AP)
2100
+ if (( WiFi.getMode () == WIFI_AP) || (WiFi. getMode () == WIFI_AP_STA) )
2097
2101
myIpAddress = WiFi.softAPIP ();
2098
2102
else
2099
2103
myIpAddress = WiFi.localIP ();
Original file line number Diff line number Diff line change @@ -388,8 +388,8 @@ void wifiUpdate()
388
388
break ;
389
389
}
390
390
391
- // Process DNS when we are in AP mode for captive portal
392
- if (WiFi.getMode () == WIFI_AP && settings.enableCaptivePortal )
391
+ // Process DNS when we are in AP mode or AP+STA mode for captive portal
392
+ if ((( WiFi.getMode () == WIFI_AP) || (WiFi. getMode () == WIFI_AP_STA)) && settings.enableCaptivePortal )
393
393
{
394
394
dnsServer.processNextRequest ();
395
395
}
@@ -435,7 +435,7 @@ void wifiStop()
435
435
MDNS.end ();
436
436
437
437
// Stop the DNS server if we were using the captive portal
438
- if (WiFi.getMode () == WIFI_AP && settings.enableCaptivePortal )
438
+ if ((( WiFi.getMode () == WIFI_AP) || (WiFi. getMode () == WIFI_AP_STA)) && settings.enableCaptivePortal )
439
439
dnsServer.stop ();
440
440
441
441
// Stop the other network clients and then WiFi
You can’t perform that action at this time.
0 commit comments