mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-04 23:55:18 -04:00
Improved power management for v2 RNodes and T-Beam devices
This commit is contained in:
parent
6a221ec67a
commit
6052c8cb40
4 changed files with 133 additions and 41 deletions
2
Config.h
2
Config.h
|
@ -306,7 +306,9 @@
|
|||
#define BATTERY_STATE_CHARGING 0x02
|
||||
#define BATTERY_STATE_CHARGED 0x03
|
||||
bool battery_installed = false;
|
||||
bool battery_indeterminate = false;
|
||||
bool external_power = false;
|
||||
bool battery_ready = false;
|
||||
float battery_voltage = 0.0;
|
||||
float battery_percent = 0.0;
|
||||
uint8_t battery_state = 0x00;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue