From ffc3bd76242f062a4bd3c4323e83b559b1859199 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Tue, 23 Apr 2024 16:37:49 -0400 Subject: [PATCH] batteryPin measurement A7670 --- src/battery_utils.cpp | 2 +- src/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battery_utils.cpp b/src/battery_utils.cpp index c4ac6a6..1f9136e 100644 --- a/src/battery_utils.cpp +++ b/src/battery_utils.cpp @@ -25,7 +25,7 @@ namespace BATTERY_Utils { int sample; int sampleSum = 0; for (int i = 0; i < 100; i++) { - #if defined(TTGO_T_LORA32_V2_1) || defined(HELTEC_V2) || defined(HELTEC_HTCT62) || defined(HELTEC_V3) + #if defined(TTGO_T_LORA32_V2_1) || defined(HELTEC_V2) || defined(HELTEC_HTCT62) || defined(HELTEC_V3) || defined(ESP32_DIY_LoRa_A7670) sample = analogRead(BATTERY_PIN); #endif #if defined(ESP32_DIY_LoRa) || defined(ESP32_DIY_1W_LoRa) diff --git a/src/utils.cpp b/src/utils.cpp index ba112b7..fcbc007 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -114,7 +114,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) + #if defined(TTGO_T_LORA32_V2_1) || defined(HELTEC_V2) || defined(HELTEC_HTCT62) || defined(HELTEC_V3) || defined(ESP32_DIY_LoRa_A7670) if (Config.sendBatteryVoltage) { beaconPacket += " Batt=" + String(BATTERY_Utils::checkBattery(),2) + "V"; secondaryBeaconPacket += " Batt=" + String(BATTERY_Utils::checkBattery(),2) + "V";