Skip to content

Commit

Permalink
VW e-Up: fix charge range mode detection
Browse files Browse the repository at this point in the history
  • Loading branch information
dexterbg committed Mar 29, 2024
1 parent 93bec30 commit e9df038
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,11 @@ void OvmsVehicleVWeUp::UpdateChargeTimes()
}

// Derive charge mode from final SOC destination:
if ((!timermode || timer_socmax == 100) && MyConfig.GetParamValueBool("xvu", "chg_autostop", false))
int final_soc = (!timermode) ? 100 : timer_socmax;
if (HasT26() && MyConfig.GetParamValueBool("xvu", "chg_autostop") && suff_soc > 0)
final_soc = suff_soc;

if (final_soc == 100)
StdMetrics.ms_v_charge_mode->SetValue("range");
else
StdMetrics.ms_v_charge_mode->SetValue("standard");
Expand Down

0 comments on commit e9df038

Please sign in to comment.