From b448e2fc6baff685691e2bdc01b20086e7913823 Mon Sep 17 00:00:00 2001 From: "Ricardo Guzman (Richonguzman)" Date: Thu, 5 Mar 2026 10:06:22 -0300 Subject: [PATCH] ADC_CTRL_PIN fix --- include/power_utils.h | 2 +- src/LoRa_APRS_iGate.cpp | 4 ++-- src/battery_utils.cpp | 4 ++-- src/power_utils.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/power_utils.h b/include/power_utils.h index 1842894..ca385f4 100644 --- a/include/power_utils.h +++ b/include/power_utils.h @@ -34,7 +34,7 @@ namespace POWER_Utils { void vext_ctrl_OFF(); #endif - #ifdef ADC_CTRL + #ifdef ADC_CTRL_PIN void adc_ctrl_ON(); void adc_ctrl_OFF(); #endif diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 591752b..47c1c07 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -67,8 +67,8 @@ ___________________________________________________________________*/ #endif -String versionDate = "2026-03-04"; -String versionNumber = "3.2.1"; +String versionDate = "2026-03-05"; +String versionNumber = "3.2.2"; Configuration Config; WiFiClient aprsIsClient; WiFiClient mqttClient; diff --git a/src/battery_utils.cpp b/src/battery_utils.cpp index 93e4ee4..7bce15e 100644 --- a/src/battery_utils.cpp +++ b/src/battery_utils.cpp @@ -154,7 +154,7 @@ namespace BATTERY_Utils { } #else - #ifdef ADC_CTRL + #ifdef ADC_CTRL_PIN POWER_Utils::adc_ctrl_ON(); #endif @@ -180,7 +180,7 @@ namespace BATTERY_Utils { delay(3); } - #ifdef ADC_CTRL + #ifdef ADC_CTRL_PIN POWER_Utils::adc_ctrl_OFF(); #ifdef HELTEC_WP_V1 diff --git a/src/power_utils.cpp b/src/power_utils.cpp index 203281a..01f08ba 100644 --- a/src/power_utils.cpp +++ b/src/power_utils.cpp @@ -272,8 +272,8 @@ namespace POWER_Utils { if (Config.beacon.gpsActive && Config.digi.ecoMode != 1) activateGPS(); #endif - #ifdef ADC_CTRL - pinMode(ADC_CTRL, OUTPUT); + #ifdef ADC_CTRL_PIN + pinMode(ADC_CTRL_PIN, OUTPUT); adc_ctrl_OFF(); #endif