From 7154fb9b08cd7490834cf47347524efdf5386cdf Mon Sep 17 00:00:00 2001 From: andig Date: Fri, 25 Aug 2023 17:39:23 +0200 Subject: [PATCH] Fix resuming charging after phase switch (#9538) --- core/loadpoint.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index 94c780ce7..99626a911 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -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