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/04 09:35:43 UTC
[plc4x] 01/02: fix(plc4go/cbus): fix application filters (if a1 is set to ff then a2 needs to be set too)
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
commit abef0bf2be51fed6c4fa627abf1216d9c3c8e1a4
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Aug 4 10:49:10 2022 +0200
fix(plc4go/cbus): fix application filters (if a1 is set to ff then a2 needs to be set too)
---
plc4go/internal/cbus/Connection.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/plc4go/internal/cbus/Connection.go b/plc4go/internal/cbus/Connection.go
index 18fd8a0e6..84e3daaf9 100644
--- a/plc4go/internal/cbus/Connection.go
+++ b/plc4go/internal/cbus/Connection.go
@@ -236,6 +236,10 @@ func (c *Connection) setupConnection(ch chan plc4go.PlcConnectionConnectResult)
if !c.sendCalDataWrite(ch, readWriteModel.Parameter_APPLICATION_ADDRESS_1, applicationAddress1, requestContext, cbusOptions) {
return
}
+ applicationAddress2 := readWriteModel.NewParameterValueApplicationAddress2(readWriteModel.NewApplicationAddress2(0xFF), 1)
+ if !c.sendCalDataWrite(ch, readWriteModel.Parameter_APPLICATION_ADDRESS_2, applicationAddress2, requestContext, cbusOptions) {
+ return
+ }
log.Debug().Msg("Application filter set")
}
{