chore: drop duplicate scale up call (#14410)

This commit is contained in:
Michael Heß 2024-06-16 16:44:58 +02:00 • committed by GitHub
parent eb63259581
commit a8f95ef6d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1149,9 +1149,6 @@ func (lp *Loadpoint) pvScalePhases(sitePower, minCurrent, maxCurrent float64) in
lp.publishTimer(phaseTimer, lp.Enable.Delay, phaseScale3p)
if elapsed := lp.clock.Since(lp.phaseTimer); elapsed >= lp.Enable.Delay {
if err := lp.scalePhases(3); err != nil {
lp.log.ERROR.Println(err)
}
if err := lp.scalePhases(3); err != nil {
lp.log.ERROR.Println(err)
}