Skip to content

Commit dfee191

Browse files
committed
Turn off ethernet icon until connected.
Fix #368.
1 parent e211c5e commit dfee191

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Firmware/RTK_Everywhere/Display.ino

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,17 +1470,12 @@ void displayBatteryVsEthernet(std::vector<iconPropertyBlinking> *iconList)
14701470
paintBatteryLevel(iconList);
14711471
else // if (present.ethernet_ws5500 == true)
14721472
{
1473-
if (online.ethernetStatus == ETH_NOT_STARTED)
1474-
return; // If Ethernet has not stated because not needed, don't display the icon
1473+
if (online.ethernetStatus != ETH_CONNECTED)
1474+
return; // Only display the Ethernet icon if we are successfully connected (no blinking)
14751475

14761476
iconPropertyBlinking prop;
14771477
prop.icon = EthernetIconProperties.iconDisplay[present.display_type];
1478-
1479-
if (online.ethernetStatus == ETH_CONNECTED)
1480-
prop.duty = 0b11111111;
1481-
else
1482-
prop.duty = 0b01010101;
1483-
1478+
prop.duty = 0b11111111;
14841479
iconList->push_back(prop);
14851480
}
14861481
}
@@ -2812,7 +2807,7 @@ void paintGettingKeys()
28122807

28132808
void paintGettingEthernetIP()
28142809
{
2815-
displayMessage("Getting IP", 0);
2810+
displayMessage("Getting IP", 1000);
28162811
}
28172812

28182813
// If an L-Band is indoors without reception, we have a ~2s wait for the RTC to come online

0 commit comments

Comments
 (0)