Skip to content

Commit 1d41709

Browse files
authored
remove phase numbering (volkszaehler#372)
1 parent 0749c93 commit 1d41709

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

meters/rs485/ddm18sd.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ type DDMProducer struct {
1212

1313
func NewDDMProducer() Producer {
1414
ops := Opcodes{
15-
VoltageL1: 0x0000,
16-
CurrentL1: 0x0008,
17-
PowerL1: 0x0012,
18-
ReactivePowerL1: 0x001A,
15+
Voltage: 0x0000,
16+
Current: 0x0008,
17+
Power: 0x0012,
18+
ReactivePower: 0x001A,
1919
Cosphi: 0x002A,
2020
Frequency: 0x0036,
2121
Sum: 0x0100,
@@ -40,7 +40,7 @@ func (p *DDMProducer) snip(iec Measurement) Operation {
4040
}
4141

4242
func (p *DDMProducer) Probe() Operation {
43-
return p.snip(VoltageL1)
43+
return p.snip(Voltage)
4444
}
4545

4646
func (p *DDMProducer) Produce() (res []Operation) {

0 commit comments

Comments
 (0)