We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a35e9ec commit d571036Copy full SHA for d571036
1 file changed
meters/rs485/ddm18sd.go
@@ -12,10 +12,10 @@ type DDMProducer struct {
12
13
func NewDDMProducer() Producer {
14
ops := Opcodes{
15
- VoltageL1: 0x0000,
16
- CurrentL1: 0x0008,
17
- PowerL1: 0x0012,
18
- ReactivePowerL1: 0x001A,
+ Voltage: 0x0000,
+ Current: 0x0008,
+ Power: 0x0012,
+ ReactivePower: 0x001A,
19
Cosphi: 0x002A,
20
Frequency: 0x0036,
21
Sum: 0x0100,
@@ -40,7 +40,7 @@ func (p *DDMProducer) snip(iec Measurement) Operation {
40
}
41
42
func (p *DDMProducer) Probe() Operation {
43
- return p.snip(VoltageL1)
+ return p.snip(Voltage)
44
45
46
func (p *DDMProducer) Produce() (res []Operation) {
0 commit comments