Skip to content

Commit ee2b29c

Browse files
committed
chore: fix inactive circuit limit applied
1 parent 9e1c2b9 commit ee2b29c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/loadpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ func (lp *Loadpoint) fastCharging() error {
12361236
maxPower1p := Voltage * lp.effectiveMaxCurrent()
12371237

12381238
// load management limit active
1239-
if circuitMaxPower := lp.circuitMaxPower(); circuitMaxPower < 1.1*maxPower1p {
1239+
if circuitMaxPower := lp.circuitMaxPower(); circuitMaxPower > 0 && circuitMaxPower < 1.1*maxPower1p {
12401240
phases = 1
12411241
lp.log.DEBUG.Printf("fast charging: scaled to 1p to match %.0fW max circuit power", circuitMaxPower)
12421242
}

0 commit comments

Comments
 (0)