Reset target soc to 100 instead of 0

This commit is contained in:
andig 2022-09-09 16:33:48 +02:00
parent ce6e770580
commit 6eb2bb3d09

View file

@ -819,7 +819,7 @@ func (lp *LoadPoint) setActiveVehicle(vehicle api.Vehicle) {
// reset minSoC and targetSoC before change
lp.setMinSoC(0)
lp.setTargetSoC(0)
lp.setTargetSoC(100)
if lp.vehicle = vehicle; vehicle != nil {
lp.socUpdated = time.Time{}