mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-28 16:52:33 +01:00
Compare commits
4 Commits
V3.2
...
clean-save
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b448e2fc6b | ||
|
|
c33720a5fb | ||
|
|
e57fad6666 | ||
|
|
2418291ac9 |
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user