Skip to content

Commit

Permalink
Ignore minor negative values for charge power
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jan 1, 2022
1 parent 9d61d98 commit 3b7f382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/loadpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,8 @@ func (lp *LoadPoint) updateChargePower() {
lp.log.DEBUG.Printf("charge power: %.0fW", value)
lp.publish("chargePower", value)

if lp.chargePower < 0 {
// use -1 for https://github.com/evcc-io/evcc/issues/2153
if lp.chargePower < -1 {
lp.log.WARN.Printf("charge power must not be negative: %.0f", lp.chargePower)
}

Expand Down

0 comments on commit 3b7f382

Please sign in to comment.