Ocpp: fix get max current scale (#16242)

This commit is contained in:
andig 2024-09-20 17:06:21 +02:00 • committed by GitHub
parent 7045c10bc7
commit 3d64200448
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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