Fix starting when buffer above buferStartSoc
Some checks failed
Some checks failed
This commit is contained in:
parent
890329448b
commit
089d01ab30
1 changed files with 1 additions and 1 deletions
|
|
@ -1094,7 +1094,7 @@ func (lp *Loadpoint) pvMaxCurrent(mode api.ChargeMode, sitePower float64, batter
|
|||
lp.log.DEBUG.Printf("pv charge current: %.3gA = %.3gA + %.3gA (%.0fW @ %dp)", targetCurrent, effectiveCurrent, deltaCurrent, sitePower, activePhases)
|
||||
|
||||
// in MinPV mode or under special conditions return at least minCurrent
|
||||
if (mode == api.ModeMinPV || batteryBuffered && lp.charging()) && targetCurrent < minCurrent {
|
||||
if (mode == api.ModeMinPV || batteryStart || batteryBuffered && lp.charging()) && targetCurrent < minCurrent {
|
||||
return minCurrent
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue