mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-08 06:23:53 +01:00
update for minSleepVoltage recovery
This commit is contained in:
parent
edd2ff65b9
commit
e9bb0391f2
|
|
@ -93,11 +93,11 @@ namespace BATTERY_Utils {
|
|||
|
||||
void startupBatteryHealth() {
|
||||
#ifdef BATTERY_PIN
|
||||
if (Config.battery.monitorInternalVoltage && checkInternalVoltage() < Config.battery.internalSleepVoltage) {
|
||||
if (Config.battery.monitorInternalVoltage && checkInternalVoltage() < Config.battery.internalSleepVoltage + 0.1) {
|
||||
shouldSleepLowVoltage = true;
|
||||
}
|
||||
#endif
|
||||
if (Config.battery.monitorExternalVoltage && checkExternalVoltage() < Config.battery.externalSleepVoltage) {
|
||||
if (Config.battery.monitorExternalVoltage && checkExternalVoltage() < Config.battery.externalSleepVoltage + 0.1) {
|
||||
shouldSleepLowVoltage = true;
|
||||
}
|
||||
if (shouldSleepLowVoltage) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue