Meter: fix spurious energy spikes (grid nonZeroEnergy + SolarEdge uint64snans) (#31295)
This commit is contained in:
parent
b8284ab4b8
commit
d87f77b7d9
3 changed files with 8 additions and 4 deletions
|
|
@ -125,6 +125,8 @@ func (r Register) DecodeFunc() (func([]byte) float64, error) {
|
|||
return asFloat64(encoding.Uint64), nil
|
||||
case "uint64s":
|
||||
return asFloat64(uint64LswFirst), nil
|
||||
case "uint64snan":
|
||||
return decodeNaN64(asFloat64(uint64LswFirst), 1<<64-1), nil
|
||||
case "uint64nan":
|
||||
return decodeNaN64(asFloat64(encoding.Uint64), 1<<64-1), nil
|
||||
case "float64":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue