Skip to content

Commit 135626d

Browse files
committed
Add additional debug prints
1 parent df445e4 commit 135626d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,15 @@ void RTK_WIFI::softApEventHandler(arduino_event_id_t event, arduino_event_info_t
16651665
if (settings.debugWifiState && _verbose)
16661666
systemPrintf("_started: 0x%08x\r\n", _started);
16671667
break;
1668+
1669+
case ARDUINO_EVENT_WIFI_AP_STACONNECTED:
1670+
if (settings.debugWifiState)
1671+
systemPrintln("Device connected to Soft AP!");
1672+
break;
1673+
case ARDUINO_EVENT_WIFI_AP_STADISCONNECTED:
1674+
if (settings.debugWifiState)
1675+
systemPrintln("Device disconnected from Soft AP!");
1676+
break;
16681677
}
16691678
}
16701679

@@ -2746,7 +2755,7 @@ bool RTK_WIFI::stopStart(WIFI_ACTION_t stopping, WIFI_ACTION_t starting)
27462755
// Start the DNS server
27472756
if (starting & WIFI_AP_START_DNS_SERVER)
27482757
{
2749-
if (settings.debugWifiState)
2758+
if (settings.debugWifiState || settings.debugWebServer)
27502759
systemPrintf("Starting DNS on soft AP\r\n");
27512760
if (dnsServer.start(53, "*", WiFi.softAPIP()) == false)
27522761
{

0 commit comments

Comments
 (0)