Fix resuming charging after phase switch (#9538)
This commit is contained in:
parent
01b15132da
commit
7154fb9b08
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue