From eaced15265adbb7be9ee682e27e636eb6162f3e3 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Thu, 24 Apr 2025 18:01:00 -0400 Subject: [PATCH] pruebas3 --- src/aprs_is_utils.cpp | 13 ++++++++++++- src/gps_utils.cpp | 2 +- src/power_utils.cpp | 4 ++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/aprs_is_utils.cpp b/src/aprs_is_utils.cpp index e18065b..7b98b14 100644 --- a/src/aprs_is_utils.cpp +++ b/src/aprs_is_utils.cpp @@ -2,6 +2,7 @@ #include "configuration.h" #include "aprs_is_utils.h" #include "station_utils.h" +#include "board_pinout.h" #include "syslog_utils.h" #include "query_utils.h" #include "A7670_utils.h" @@ -370,7 +371,17 @@ namespace APRS_IS_Utils { listenAPRSIS(); } } - if (Config.digi.ecoMode == 1) displayToggle(false); + if (Config.digi.ecoMode == 1) { + displayToggle(false); + #ifdef VEXT_CTRL + #if defined(HELTEC_WIRELESS_TRACKER) || defined(HELTEC_V3) + digitalWrite(VEXT_CTRL, LOW); + #endif + #if defined(HELTEC_WP) || defined(HELTEC_WS) || defined(HELTEC_V3_2) + digitalWrite(VEXT_CTRL, HIGH); + #endif + #endif + } } } \ No newline at end of file diff --git a/src/gps_utils.cpp b/src/gps_utils.cpp index 43f6a84..99434e6 100644 --- a/src/gps_utils.cpp +++ b/src/gps_utils.cpp @@ -225,7 +225,7 @@ namespace GPS_Utils { void setup() { #ifdef HAS_GPS - if (Config.beacon.gpsActive) { + if (Config.beacon.gpsActive && Config.digi.ecoMode != 1) { gpsSerial.begin(GPS_BAUD, SERIAL_8N1, GPS_TX, GPS_RX); } #endif diff --git a/src/power_utils.cpp b/src/power_utils.cpp index c7ba6f5..32c7b5e 100644 --- a/src/power_utils.cpp +++ b/src/power_utils.cpp @@ -224,7 +224,7 @@ namespace POWER_Utils { #ifdef VEXT_CTRL pinMode(VEXT_CTRL,OUTPUT); // GPS + TFT on HELTEC Wireless_Tracker and only for Oled in HELTEC V3 - #if defined(HELTEC_WIRELESS_TRACKER) || defined(HELTEC_V3) + #if defined(HELTEC_WIRELESS_TRACKER) || defined(HELTEC_V3) digitalWrite(VEXT_CTRL, HIGH); #endif #if defined(HELTEC_WP) || defined(HELTEC_WS) || defined(HELTEC_V3_2) @@ -233,7 +233,7 @@ namespace POWER_Utils { #endif #ifdef HAS_GPS - if (Config.beacon.gpsActive) activateGPS(); + if (Config.beacon.gpsActive && Config.digi.ecoMode != 1) activateGPS(); #endif #ifdef ADC_CTRL