Compare commits

...

4 Commits

Author SHA1 Message Date
Ricardo Guzman (Richonguzman)
b448e2fc6b ADC_CTRL_PIN fix 2026-03-05 10:06:22 -03:00
Ricardo Guzman (Richonguzman)
c33720a5fb VEXT_CTRL_PIN definition missing fix 2026-03-04 12:24:16 -03:00
Ricardo Guzman (Richonguzman)
e57fad6666 aprsis.active update in digi.ecoMode == 1 ? 2026-03-04 11:21:26 -03:00
Ricardo Guzman (Richonguzman)
2418291ac9 digiEcoMode forces APRS.active = false 2026-03-03 11:22:41 -03:00
6 changed files with 12 additions and 11 deletions

View File

@@ -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

View File

@@ -67,8 +67,8 @@ ___________________________________________________________________*/
#endif
String versionDate = "2026-02-26";
String versionNumber = "3.2";
String versionDate = "2026-03-05";
String versionNumber = "3.2.2";
Configuration Config;
WiFiClient aprsIsClient;
WiFiClient mqttClient;

View File

@@ -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

View File

@@ -87,6 +87,7 @@ bool Configuration::writeFile() {
data["digi"]["mode"] = digi.mode;
data["digi"]["ecoMode"] = digi.ecoMode;
if (digi.ecoMode == 1) data["aprs_is"]["active"] = false;
#if defined(HAS_A7670)
if (digi.ecoMode == 1) data["digi"]["ecoMode"] = 2;
#endif

View File

@@ -263,8 +263,8 @@ namespace POWER_Utils {
pinMode(Config.battery.externalVoltagePin, INPUT);
}
#ifdef VEXT_CTRL
pinMode(VEXT_CTRL,OUTPUT); // GPS + TFT on HELTEC Wireless_Tracker and only for Oled in HELTEC V3
#ifdef VEXT_CTRL_PIN
pinMode(VEXT_CTRL_PIN,OUTPUT); // GPS + TFT on HELTEC Wireless_Tracker and only for Oled in HELTEC V3
vext_ctrl_ON();
#endif
@@ -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

View File

@@ -408,9 +408,9 @@ namespace Utils {
if (mode == 1) { // low voltage detected after a while
displayToggle(false);
}
#ifdef VEXT_CTRL
#ifdef VEXT_CTRL_PIN
#ifndef HELTEC_WSL_V3
digitalWrite(VEXT_CTRL, LOW);
digitalWrite(VEXT_CTRL_PIN, LOW);
#endif
#endif
LoRa_Utils::sleepRadio();