Skip to content

Commit

Permalink
Ocpp: fix get max current scale (evcc-io#16242)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Sep 20, 2024
1 parent 7045c10 commit 3d64200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charger/ocpp/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (conn *Connector) GetMaxCurrent() (float64, error) {

if m, ok := conn.measurements[types.MeasurandCurrentOffered]; ok {
f, err := strconv.ParseFloat(m.Value, 64)
return scale(f, m.Unit) / 1e3, err
return scale(f, m.Unit), err
}

return 0, api.ErrNotAvailable
Expand Down

0 comments on commit 3d64200

Please sign in to comment.