Debug charge time

This commit is contained in:
Carsten Schmiemann 2022-04-23 15:47:29 +02:00
parent f63278f6ee
commit 7384396cfe

View file

@ -218,7 +218,7 @@ int OvmsVehicleRenaultZoePh2::calcMinutesRemaining(float charge_voltage, float c
float remaining_wh = m_battery_capacity * bat_soc / 100.0;
float remaining_hours = remaining_wh / (charge_current * charge_voltage);
float remaining_mins = remaining_hours * 60.0;
ESP_LOGD(TAG, "SOC: %f, BattCap:%d, Current: %f, Voltage: %f, RemainWH: %f, RemainHour: %f, RemainMin: %f", bat_soc, m_battery_capacity, charge_current, charge_voltage, remaining_wh, remaining_hours, remaining_mins);
return MIN( 1440, (int)remaining_mins );
}