@@ -1016,9 +1016,9 @@ uint32_t setWiFiIcon_TwoRadios()
10161016 {
10171017#ifdef COMPILE_WIFI
10181018 int wifiRSSI = WiFi.RSSI ();
1019- #else
1019+ #else // COMPILE_WIFI
10201020 int wifiRSSI = -40 ; // Dummy
1021- #endif
1021+ #endif // COMPILE_WIFI
10221022 // Based on RSSI, select icon
10231023 if (wifiRSSI >= -40 )
10241024 icons |= ICON_WIFI_SYMBOL_3_LEFT;
@@ -1046,9 +1046,9 @@ uint32_t setWiFiIcon_TwoRadios()
10461046 {
10471047#ifdef COMPILE_WIFI
10481048 int wifiRSSI = WiFi.RSSI ();
1049- #else
1049+ #else // COMPILE_WIFI
10501050 int wifiRSSI = -40 ; // Dummy
1051- #endif
1051+ #endif // COMPILE_WIFI
10521052 // Based on RSSI, select icon
10531053 if (wifiRSSI >= -40 )
10541054 icons |= ICON_WIFI_SYMBOL_3_LEFT;
@@ -1103,9 +1103,9 @@ uint32_t setWiFiIcon_ThreeRadios()
11031103 {
11041104#ifdef COMPILE_WIFI
11051105 int wifiRSSI = WiFi.RSSI ();
1106- #else
1106+ #else // COMPILE_WIFI
11071107 int wifiRSSI = -40 ; // Dummy
1108- #endif
1108+ #endif // COMPILE_WIFI
11091109 // Based on RSSI, select icon
11101110 if (wifiRSSI >= -40 )
11111111 icons |= ICON_WIFI_SYMBOL_3_RIGHT;
@@ -1133,9 +1133,9 @@ uint32_t setWiFiIcon_ThreeRadios()
11331133 {
11341134#ifdef COMPILE_WIFI
11351135 int wifiRSSI = WiFi.RSSI ();
1136- #else
1136+ #else // COMPILE_WIFI
11371137 int wifiRSSI = -40 ; // Dummy
1138- #endif
1138+ #endif // COMPILE_WIFI
11391139 // Based on RSSI, select icon
11401140 if (wifiRSSI >= -40 )
11411141 icons |= ICON_WIFI_SYMBOL_3_RIGHT;
@@ -1583,9 +1583,9 @@ void paintLogging()
15831583 loggingIconDisplayed %= 4 ; // Wrap
15841584#ifdef COMPILE_ETHERNET
15851585 if ((online.logging == true ) && (logIncreasing || ntpLogIncreasing))
1586- #else
1586+ #else // COMPILE_ETHERNET
15871587 if ((online.logging == true ) && (logIncreasing))
1588- #endif
1588+ #endif // COMPILE_ETHERNET
15891589 {
15901590 if (loggingType == LOGGING_STANDARD)
15911591 {
@@ -1656,9 +1656,9 @@ void paintLoggingNTP(bool noPulse)
16561656 loggingIconDisplayed %= 4 ; // Wrap
16571657#ifdef COMPILE_ETHERNET // Some redundancy here. paintLoggingNTP should only be called if Ethernet is present
16581658 if ((online.logging == true ) && (logIncreasing || ntpLogIncreasing))
1659- #else
1659+ #else // COMPILE_ETHERNET
16601660 if ((online.logging == true ) && (logIncreasing))
1661- #endif
1661+ #endif // COMPILE_ETHERNET
16621662 {
16631663 if (loggingIconDisplayed == 0 )
16641664 displayBitmap (64 - Logging_0_Width, 48 - Logging_0_Height, Logging_0_Width, Logging_0_Height, Logging_0);
@@ -1825,9 +1825,9 @@ void paintIPAddress()
18251825 snprintf (ipAddress, sizeof (ipAddress), " %d.%d.%d.%d " ,
18261826#ifdef COMPILE_ETHERNET
18271827 Ethernet.localIP ()[0 ], Ethernet.localIP ()[1 ], Ethernet.localIP ()[2 ], Ethernet.localIP ()[3 ]);
1828- #else
1828+ #else // COMPILE_ETHERNET
18291829 0 , 0 , 0 , 0 );
1830- #endif
1830+ #endif // COMPILE_ETHERNET
18311831
18321832 static uint8_t ipAddressPosition = 0 ;
18331833
@@ -2037,9 +2037,9 @@ void displayWiFiConfig()
20372037 snprintf (mySSID, sizeof (mySSID), " %s" , " RTK Config" );
20382038 else
20392039 snprintf (mySSID, sizeof (mySSID), " %s" , WiFi.SSID ().c_str ());
2040- #else
2040+ #else // COMPILE_WIFI
20412041 snprintf (mySSID, sizeof (mySSID), " %s" , " !Compiled" );
2042- #endif
2042+ #endif // COMPILE_WIFI
20432043
20442044 char mySSIDFront[displayMaxCharacters + 1 ]; // 1 for null terminator
20452045 char mySSIDBack[displayMaxCharacters + 1 ]; // 1 for null terminator
@@ -2094,9 +2094,9 @@ void displayWiFiConfig()
20942094 else
20952095 printTextCenter (myIPBack, yPos, QW_FONT_5X7, 1 , false );
20962096
2097- #else
2097+ #else // COMPILE_AP
20982098 printTextCenter (" !Compiled" , yPos, QW_FONT_5X7, 1 , false );
2099- #endif
2099+ #endif // COMPILE_AP
21002100}
21012101
21022102// When user does a factory reset, let us know
@@ -3307,11 +3307,11 @@ void displayConfigViaEthernet()
33073307 oled.display ();
33083308 }
33093309
3310- #else
3310+ #else // COMPILE_ETHERNET
33113311 uint8_t fontHeight = 15 ;
33123312 uint8_t yPos = oled.getHeight () / 2 - fontHeight;
33133313 printTextCenter (" !Compiled" , yPos, QW_FONT_5X7, 1 , false );
3314- #endif
3314+ #endif // COMPILE_ETHERNET
33153315}
33163316
33173317const uint8_t *getMacAddress ()
@@ -3321,14 +3321,14 @@ const uint8_t *getMacAddress()
33213321#ifdef COMPILE_BT
33223322 if (bluetoothState != BT_OFF)
33233323 return btMACAddress;
3324- #endif
3324+ #endif // COMPILE_BT
33253325#ifdef COMPILE_WIFI
33263326 if (wifiState != WIFI_OFF)
33273327 return wifiMACAddress;
3328- #endif
3328+ #endif // COMPILE_WIFI
33293329#ifdef COMPILE_ETHERNET
33303330 if ((online.ethernetStatus >= ETH_STARTED_CHECK_CABLE) && (online.ethernetStatus <= ETH_CONNECTED))
33313331 return ethernetMACAddress;
3332- #endif
3332+ #endif // COMPILE_ETHERNET
33333333 return zero;
33343334}
0 commit comments