parent
0e0a51fb7f
commit
49450cf079
1 changed files with 1 additions and 1 deletions
|
|
@ -678,7 +678,7 @@ func (lp *LoadPoint) pvMaxCurrent(mode api.ChargeMode, sitePower float64) float6
|
|||
deltaCurrent := powerToCurrent(-sitePower, lp.Phases)
|
||||
targetCurrent := math.Max(math.Min(effectiveCurrent+deltaCurrent, float64(lp.MaxCurrent)), 0)
|
||||
|
||||
lp.log.DEBUG.Printf("max charge current: %.2gA = %.2gA + %.2gA (%.0fW @ %dp)", targetCurrent, effectiveCurrent, deltaCurrent, sitePower, lp.Phases)
|
||||
lp.log.DEBUG.Printf("max charge current: %.1fA = %.1fA + %.1fA (%.0fW @ %dp)", targetCurrent, effectiveCurrent, deltaCurrent, sitePower, lp.Phases)
|
||||
|
||||
// in MinPV mode return at least minCurrent
|
||||
if mode == api.ModeMinPV && targetCurrent < float64(lp.MinCurrent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue