chore: remove temporary debug messages (#19372)
This commit is contained in:
parent
080e4869d8
commit
62b33839b1
1 changed files with 0 additions and 7 deletions
|
|
@ -1222,8 +1222,6 @@ func (lp *Loadpoint) pvScalePhases(sitePower, minCurrent, maxCurrent float64) in
|
|||
availablePower := lp.chargePower - sitePower
|
||||
scalable := (sitePower > 0 || !lp.enabled) && activePhases > 1 && lp.phasesConfigured < 3
|
||||
|
||||
lp.log.DEBUG.Printf("!! pvScalePhases DOWN activePhases: %d, available power: %.0fW, scalable: %t", activePhases, availablePower, scalable)
|
||||
|
||||
// scale down phases
|
||||
if targetCurrent := powerToCurrent(availablePower, activePhases); targetCurrent < minCurrent && scalable {
|
||||
lp.log.DEBUG.Printf("available power %.0fW < %.0fW min %dp threshold", availablePower, float64(activePhases)*Voltage*minCurrent, activePhases)
|
||||
|
|
@ -1253,8 +1251,6 @@ func (lp *Loadpoint) pvScalePhases(sitePower, minCurrent, maxCurrent float64) in
|
|||
target1pCurrent := powerToCurrent(availablePower, 1)
|
||||
scalable = maxPhases > 1 && phases < maxPhases && target1pCurrent > maxCurrent
|
||||
|
||||
lp.log.DEBUG.Printf("!! pvScalePhases UP maxPhases: %d, available power: %.0fW, scalable: %t", maxPhases, availablePower, scalable)
|
||||
|
||||
// scale up phases
|
||||
if targetCurrent := powerToCurrent(availablePower, maxPhases); targetCurrent >= minCurrent && scalable {
|
||||
lp.log.DEBUG.Printf("available power %.0fW > %.0fW min %dp threshold", availablePower, 3*Voltage*minCurrent, maxPhases)
|
||||
|
|
@ -1285,8 +1281,6 @@ func (lp *Loadpoint) pvScalePhases(sitePower, minCurrent, maxCurrent float64) in
|
|||
lp.resetPhaseTimer()
|
||||
}
|
||||
|
||||
lp.log.DEBUG.Println("!! pvScalePhases EXIT")
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
@ -1355,7 +1349,6 @@ func (lp *Loadpoint) pvMaxCurrent(mode api.ChargeMode, sitePower, batteryBoostPo
|
|||
if lp.hasPhaseSwitching() && lp.phaseSwitchCompleted() {
|
||||
scaledTo = lp.pvScalePhases(sitePower, minCurrent, maxCurrent)
|
||||
} else if lp.GetBatteryBoost() != boostDisabled {
|
||||
lp.log.DEBUG.Printf("!! pvScalePhases phasesSwitched: %v, %v", lp.phasesSwitched, time.Since(lp.phasesSwitched))
|
||||
}
|
||||
|
||||
// calculate target charge current from delta power and actual current
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue