Ocpp: fix phase energy unit conversion (#19590)
This commit is contained in:
parent
788e2ef780
commit
33758d094b
1 changed files with 1 additions and 1 deletions
|
|
@ -324,7 +324,7 @@ func (conn *Connector) TotalEnergy() (float64, error) {
|
|||
// fallback for missing total energy
|
||||
for _, suffix := range []types.Measurand{"", "-N"} {
|
||||
if res, found, err := conn.phaseMeasurements(types.MeasurandEnergyActiveImportRegister, suffix); found {
|
||||
return res[0] + res[1] + res[2], err
|
||||
return (res[0] + res[1] + res[2]) / 1e3, err
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue