code cleaning in power_utils

This commit is contained in:
richonguzman
2024-05-02 12:57:18 -04:00
parent d744f0a0f0
commit 04a7f89891
4 changed files with 21 additions and 22 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ namespace Utils {
beaconPacket += Config.beacon.comment;
secondaryBeaconPacket += Config.beacon.comment;
#if defined(TTGO_T_LORA32_V2_1) || defined(HELTEC_V2) || defined(HELTEC_HTCT62) || defined(HELTEC_V3) || defined(ESP32_DIY_LoRa_A7670) || defined(TTGO_T_LORA32_V2_1_915)
#ifdef BATTERY_PIN
if (Config.sendBatteryVoltage) {
beaconPacket += " Batt=" + String(BATTERY_Utils::checkBattery(),2) + "V";
secondaryBeaconPacket += " Batt=" + String(BATTERY_Utils::checkBattery(),2) + "V";