Skip to content

Commit

Permalink
fix(plc4go/cbus): fix address string of cal identify field
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Aug 16, 2022
1 parent 2a5b518 commit 16d5348
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plc4go/internal/cbus/Field.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,7 @@ func (c calIdentifyField) GetAttribute() readWriteModel.Attribute {
}

func (c calIdentifyField) GetAddressString() string {
// TODO: this is nonsense... fix that
return fmt.Sprintf("%d[%d]", c.fieldType, c.numElements)
return fmt.Sprintf("cal/%d/identify=%s", c.unitAddress.GetAddress(), c.GetAttribute())
}

func (c calIdentifyField) GetTypeName() string {
Expand Down

0 comments on commit 16d5348

Please sign in to comment.