From 082faa0f1e63a5f821019e363d05ed270ed338b8 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Tue, 6 Aug 2024 21:48:59 -0400 Subject: [PATCH] all boards sleep with tracker voltage below 3v --- src/station_utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/station_utils.cpp b/src/station_utils.cpp index 1982a10..1103204 100644 --- a/src/station_utils.cpp +++ b/src/station_utils.cpp @@ -3,6 +3,7 @@ #include "APRSPacketLib.h" #include "station_utils.h" #include "configuration.h" +#include "boards_pinout.h" #include "power_utils.h" #include "sleep_utils.h" #include "lora_utils.h" @@ -291,7 +292,7 @@ namespace STATION_Utils { if (currentBeacon->gpsEcoMode) { gpsShouldSleep = true; } - #if defined(HELTEC_WIRELESS_TRACKER) + #if !defined(HAS_AXP192) && !defined(HAS_AXP2101) && defined(BATTERY_PIN) if (batteryVoltage.toFloat() < 3.0) { POWER_Utils::shutdown(); }