Fix resuming charging after phase switch (#9538)

This commit is contained in:
andig 2023-08-25 17:39:23 +02:00 • committed by GitHub
parent 01b15132da
commit 7154fb9b08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1117,9 +1117,7 @@ func (lp *Loadpoint) pvMaxCurrent(mode api.ChargeMode, sitePower float64, batter
// switch phases up/down
if _, ok := lp.charger.(api.PhaseSwitcher); ok {
if lp.pvScalePhases(sitePower, minCurrent, maxCurrent) {
return minCurrent
}
_ = lp.pvScalePhases(sitePower, minCurrent, maxCurrent)
}
// calculate target charge current from delta power and actual current