Skip to content

Commit

Permalink
Ocpp: fix fatal error on meter interval config (evcc-io#15419)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored Aug 15, 2024
1 parent e01d8d6 commit 3798d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charger/ocpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func NewOCPP(id string, connector int, idtag string,
// configure sample rate
if meterInterval > 0 {
if err := c.configure(ocpp.KeyMeterValueSampleInterval, strconv.Itoa(int(meterInterval.Seconds()))); err != nil {
return nil, err
c.log.WARN.Printf("failed configuring MeterValueSampleInterval: %v", err)
}
}

Expand Down

0 comments on commit 3798d4e

Please sign in to comment.