Skip to content

Commit a9c2924

Browse files
Meter: rename uint64snans to uint64snan
Co-authored-by: andig <andig@users.noreply.github.com>
1 parent 84b0a32 commit a9c2924

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

templates/definition/meter/solaredge-hybrid.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ render: |
130130
register:
131131
address: 0xE176 # Battery 1 Lifetime Export Energy Counter (discharged)
132132
type: holding
133-
decode: uint64snans
133+
decode: uint64snan
134134
scale: 0.001
135135
returnenergy:
136136
source: modbus
137137
{{- include "modbus" . | indent 2 }}
138138
register:
139139
address: 0xE17A # Battery 1 Lifetime Import Energy Counter (charged)
140140
type: holding
141-
decode: uint64snans
141+
decode: uint64snan
142142
scale: 0.001
143143
batterymode:
144144
source: watchdog

util/modbus/register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (r Register) DecodeFunc() (func([]byte) float64, error) {
125125
return asFloat64(encoding.Uint64), nil
126126
case "uint64s":
127127
return asFloat64(uint64LswFirst), nil
128-
case "uint64snans":
128+
case "uint64snan":
129129
return decodeNaN64(asFloat64(uint64LswFirst), 1<<64-1), nil
130130
case "uint64nan":
131131
return decodeNaN64(asFloat64(encoding.Uint64), 1<<64-1), nil

0 commit comments

Comments
 (0)