You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/08/16 11:21:14 UTC

[plc4x] branch develop updated: fix(plc4go/cbus): fix address string of cal identify field

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 16d5348a4 fix(plc4go/cbus): fix address string of cal identify field
16d5348a4 is described below

commit 16d5348a4a4331232be12ca30de3c6797b0d46d6
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Aug 16 13:21:07 2022 +0200

    fix(plc4go/cbus): fix address string of cal identify field
---
 plc4go/internal/cbus/Field.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plc4go/internal/cbus/Field.go b/plc4go/internal/cbus/Field.go
index e3572b59f..76a89ff70 100644
--- a/plc4go/internal/cbus/Field.go
+++ b/plc4go/internal/cbus/Field.go
@@ -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 {