charge_control: removed unused code

This commit is contained in:
Thomas Kolb 2021-06-11 23:52:50 +02:00
parent ed6ac04686
commit d2a95c4353

View file

@ -289,9 +289,6 @@ void charge_control_update(uint64_t uptime_ms, struct MeasurementResult *meas)
discharge_state_entered_timestamp = uptime_ms; discharge_state_entered_timestamp = uptime_ms;
} }
/* calculate charge pump excess voltage above battery voltage. */
fxp_t charge_pump_voltage_delta = fxp_sub(meas->u_sw, meas->u_bat);
/* generalized charge pump control */ /* generalized charge pump control */
if(charge_state_entered || discharge_state_entered) { if(charge_state_entered || discharge_state_entered) {
if(charge_state == CHARGE_WAIT_CHARGEPUMP if(charge_state == CHARGE_WAIT_CHARGEPUMP