deepSleep in heltec for lower battery voltage
This commit is contained in:
parent
1a5656b231
commit
a83e2a436c
|
|
@ -236,8 +236,9 @@ namespace STATION_Utils {
|
|||
comment = currentBeacon->comment;
|
||||
sendCommentAfterXBeacons = Config.sendCommentAfterXBeacons;
|
||||
}
|
||||
String batteryVoltage = POWER_Utils::getBatteryInfoVoltage();
|
||||
if (Config.sendBatteryInfo) {
|
||||
String batteryVoltage = POWER_Utils::getBatteryInfoVoltage();
|
||||
//String batteryVoltage = POWER_Utils::getBatteryInfoVoltage();
|
||||
String batteryChargeCurrent = POWER_Utils::getBatteryInfoCurrent();
|
||||
#ifdef HAS_AXP192
|
||||
comment += " Bat=";
|
||||
|
|
@ -286,6 +287,11 @@ namespace STATION_Utils {
|
|||
if (currentBeacon->gpsEcoMode) { // currentBeacon->gpsEcoMode // true!
|
||||
SLEEP_Utils::gpsSleep();
|
||||
}
|
||||
#if defined(HELTEC_WIRELESS_TRACKER)
|
||||
if (batteryVoltage.toFloat() < 3.0) {
|
||||
POWER_Utils::shutdown();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void checkTelemetryTx() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue