mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 18:47:40 +00:00
Change condition for low-voltage killswitch
This commit is contained in:
parent
d1cc503ca8
commit
aa19718ba4
@ -568,8 +568,12 @@ bool Power::axpChipInit()
|
|||||||
}
|
}
|
||||||
DEBUG_MSG("=======================================================================\n");
|
DEBUG_MSG("=======================================================================\n");
|
||||||
|
|
||||||
// Disable shutdown for non ESP32 boards
|
// We can safely ignore this approach for most (or all) boards because MCU turned off
|
||||||
#ifdef ARCH_ESP32
|
// earlier than battery discharged to 2.6V.
|
||||||
|
//
|
||||||
|
// Unfortanly for now we can't use this killswitch for RAK4630-based boards because they have a bug with
|
||||||
|
// battery voltage measurement. Probably it sometimes drops to low values.
|
||||||
|
#ifndef RAK4630
|
||||||
// Set PMU shutdown voltage at 2.6V to maximize battery utilization
|
// Set PMU shutdown voltage at 2.6V to maximize battery utilization
|
||||||
PMU->setSysPowerDownVoltage(2600);
|
PMU->setSysPowerDownVoltage(2600);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user