Fix energy counter

This commit is contained in:
Carsten Schmiemann 2022-04-19 22:43:20 +02:00
parent 19106cdd89
commit 1fa767a5f1
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ void OvmsVehicleRenaultZoePh2::EnergyStatistics() {
float power = voltage * current / 1000.0;
if (power != 0.0 && StandardMetrics.ms_v_env_on->AsBool()) {
float energy = power / 3600.0;
float energy = power / 3600.0 * 10.0;
if (energy > 0.0f)
StandardMetrics.ms_v_bat_energy_used->SetValue( StandardMetrics.ms_v_bat_energy_used->AsFloat() - energy);
else