[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user