Correctly specify target state as 3p

This commit is contained in:
andig 2022-01-09 12:18:02 +01:00
parent 8633eb9c15
commit 445bafcb8e

View file

@ -969,7 +969,7 @@ func (lp *LoadPoint) pvScalePhases(availablePower, minCurrent, maxCurrent float6
// if more active phases observed than configured, update internal state accordingly
if phases < lp.activePhases {
lp.log.WARN.Printf("inconsistent phases: %dp configured < %dp observed active, updating internal state to %dp", phases, lp.activePhases, lp.activePhases)
lp.log.WARN.Printf("inconsistent phases: %dp configured < %dp observed active, updating internal state to 3p", phases, lp.activePhases)
phases = 3
lp.setPhases(3)
}