mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-22 05:14:46 -07:00
[FL-905] Add battery health state monitoring in power app (#358)
* add battery health reading from gauge * add battery health reading to api-hal-power * update battery health in power application Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -205,6 +205,7 @@ int32_t power_task(void* p) {
|
||||
with_view_model(
|
||||
power->info_view, (PowerInfoModel * model) {
|
||||
model->charge = api_hal_power_get_pct();
|
||||
model->health = api_hal_power_get_bat_health_pct();
|
||||
model->capacity_remaining = api_hal_power_get_battery_remaining_capacity();
|
||||
model->capacity_full = api_hal_power_get_battery_full_capacity();
|
||||
model->current_charger = api_hal_power_get_battery_current(ApiHalPowerICCharger);
|
||||
|
||||
Reference in New Issue
Block a user