Loadpoint: fix reentrant lock

Follow-up to https://github.com/evcc-io/evcc/pull/18669
This commit is contained in:
andig 2025-03-15 14:50:41 +01:00
parent 8d3d42b997
commit 3b30b2773a

View file

@ -999,7 +999,7 @@ func (lp *Loadpoint) minSocNotReached() bool {
}
minEnergy := v.Capacity() * float64(minSoc) / 100 / soc.ChargeEfficiency
return minEnergy > 0 && lp.GetChargedEnergy() < minEnergy
return minEnergy > 0 && lp.getChargedEnergy() < minEnergy
}
// disableUnlessClimater disables the charger unless climate is active