mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-09-27 12:01:10 -04:00
parent
83b65ba6ce
commit
b9771b2350
6 changed files with 124 additions and 96 deletions
|
@ -45,6 +45,11 @@ class BatteryManagement {
|
|||
static void set_calc_override(bool override);
|
||||
static uint8_t calc_percent_voltage(uint16_t); // calculates battery percentage from the voltage
|
||||
static bool calcOverride; // if set to true, it'll override the battery percent calculation based on current voltage.
|
||||
static void getBatteryInfo(uint8_t& valid_mask, uint8_t& percent, uint16_t& voltage, int32_t& current);
|
||||
static uint16_t get_cycles();
|
||||
static float get_tte();
|
||||
static float get_ttf();
|
||||
|
||||
private:
|
||||
};
|
||||
}; // namespace battery
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue