Skip to content

Commit 3ee9f4e

Browse files
committed
Make WiFi icon solid when AP is connected
1 parent fc75ff4 commit 3ee9f4e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Firmware/RTK_Everywhere/Display.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
756756
else if (wifiStationRunning && (networkInterfaceHasInternet(NETWORK_WIFI_STATION) == false))
757757
{
758758
// We are not connected, blink icon
759-
displayWiFiFullIcon(iconList, prop, ICON_POSITION_CENTER, 0b00001111);
759+
displayWiFiFullIcon(iconList, prop, ICON_POSITION_CENTER, 0b01010101);
760760
}
761761
else if(wifiSoftApRunning)
762762
{
@@ -1220,7 +1220,7 @@ void setWiFiIcon(std::vector<iconPropertyBlinking> *iconList)
12201220
icon.icon.yPos = 0;
12211221

12221222
#ifdef COMPILE_WIFI
1223-
if (networkInterfaceHasInternet(NETWORK_WIFI_STATION))
1223+
if (networkInterfaceHasInternet(NETWORK_WIFI_STATION) || wifiSoftApConnected == true)
12241224
icon.duty = 0b11111111;
12251225
else
12261226
#endif // COMPILE_WIFI

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,10 +1677,12 @@ void RTK_WIFI::softApEventHandler(arduino_event_id_t event, arduino_event_info_t
16771677
case ARDUINO_EVENT_WIFI_AP_STACONNECTED:
16781678
if (settings.debugWifiState)
16791679
systemPrintln("Device connected to Soft AP!");
1680+
wifiSoftApConnected = true;
16801681
break;
16811682
case ARDUINO_EVENT_WIFI_AP_STADISCONNECTED:
16821683
if (settings.debugWifiState)
16831684
systemPrintln("Device disconnected from Soft AP!");
1685+
wifiSoftApConnected = false;
16841686
break;
16851687
}
16861688
}

0 commit comments

Comments
 (0)