@@ -823,38 +823,24 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
823
823
usbSerialIncomingRtcm = false ;
824
824
}
825
825
826
+ bool networkOnline = false ;
827
+
828
+ #ifdef COMPILE_ETHERNET
829
+ if (networkIsInterfaceOnline (NETWORK_ETHERNET))
830
+ networkOnline = true ;
831
+ #endif // COMPILE_ETHERNET
832
+
826
833
#ifdef COMPILE_WIFI
827
834
if (networkIsInterfaceOnline (NETWORK_WIFI))
828
- {
829
- if (netIncomingRTCM == true ) // Download : Columns 74 - 81
830
- {
831
- iconPropertyBlinking prop;
832
- prop.icon = DownloadArrow128x64;
833
- prop.duty = 0b11111111 ;
834
- iconList->push_back (prop);
835
- netIncomingRTCM = false ;
836
- }
837
- if (mqttClientDataReceived == true ) // Download : Columns 74 - 81
838
- {
839
- iconPropertyBlinking prop;
840
- prop.icon = DownloadArrow128x64;
841
- prop.duty = 0b11111111 ;
842
- iconList->push_back (prop);
843
- mqttClientDataReceived = false ;
844
- }
845
- if (netOutgoingRTCM == true ) // Upload : Columns 83 - 90
846
- {
847
- iconPropertyBlinking prop;
848
- prop.icon = UploadArrow128x64;
849
- prop.duty = 0b11111111 ;
850
- iconList->push_back (prop);
851
- netOutgoingRTCM = false ;
852
- }
853
- }
835
+ networkOnline = true ;
854
836
#endif // COMPILE_WIFI
855
837
856
838
#ifdef COMPILE_CELLULAR
857
839
if (networkIsInterfaceOnline (NETWORK_CELLULAR))
840
+ networkOnline = true ;
841
+ #endif // COMPILE_CELLULAR
842
+
843
+ if (networkOnline)
858
844
{
859
845
if (netIncomingRTCM == true ) // Download : Columns 74 - 81
860
846
{
@@ -881,7 +867,6 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
881
867
netOutgoingRTCM = false ;
882
868
}
883
869
}
884
- #endif // COMPILE_CELLULAR
885
870
886
871
switch (systemState) // Dynamic Model / Base : Columns 92 - 106
887
872
{
0 commit comments