Ocpp: fix get max current scale (#16242)
This commit is contained in:
parent
7045c10bc7
commit
3d64200448
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue