diff options
Diffstat (limited to 'include/charge_state.h')
-rw-r--r-- | include/charge_state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/charge_state.h b/include/charge_state.h index 04ca4c6648..4a152032fc 100644 --- a/include/charge_state.h +++ b/include/charge_state.h @@ -86,10 +86,17 @@ int charge_keep_power_off(void); */ uint32_t charge_get_flags(void); +#if defined(CONFIG_CHARGER) /** * Return current battery charge percentage. */ int charge_get_percent(void); +#elif defined(CONFIG_BATTERY) +/** + * Return current battery charge if not using charge manager sub-system. + */ +int board_get_battery_soc(void); +#endif /** * Return current display charge in 10ths of a percent (e.g. 1000 = 100.0%) |