[FL-1268] Gauge re-calibration (#471)

* bq27220: add new battery profile parameters
* bq27220: add gauging configuration
* power: change poweroff condition depending on remain capacity
* api-hal-power: update api for f6 target
This commit is contained in:
gornekich
2021-05-18 17:59:16 +03:00
committed by GitHub
parent 6d648da003
commit df4a170213
6 changed files with 113 additions and 52 deletions

View File

@@ -206,7 +206,7 @@ int32_t power_task(void* p) {
model->temperature_gauge =
api_hal_power_get_battery_temperature(ApiHalPowerICFuelGauge);
if(model->voltage_gauge < 3.3f && model->voltage_vbus < 4.0f) {
if(model->charge == 0 && model->voltage_vbus < 4.0f) {
battery_low = true;
}