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/02 15:15:52 UTC
[plc4x] 01/02: fix(cbus): fixed setting of c-bus options
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 324868edc250b5aa288782dde1a9e61773b339f6
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Aug 2 15:07:55 2022 +0200
fix(cbus): fixed setting of c-bus options
---
plc4go/internal/cbus/Connection.go | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/plc4go/internal/cbus/Connection.go b/plc4go/internal/cbus/Connection.go
index f6a991692..e9375d18c 100644
--- a/plc4go/internal/cbus/Connection.go
+++ b/plc4go/internal/cbus/Connection.go
@@ -243,6 +243,7 @@ func (c *Connection) setupConnection(ch chan plc4go.PlcConnectionConnectResult)
if !c.sendCalDataWrite(ch, readWriteModel.Parameter_INTERFACE_OPTIONS_3, interfaceOptions3, requestContext, cbusOptions) {
return
}
+ // TODO: add localsal to the options
*cbusOptions = readWriteModel.NewCBusOptions(false, false, false, true, false, false, false, false, false)
log.Debug().Msg("Interface options 3 set")
}
@@ -252,7 +253,7 @@ func (c *Connection) setupConnection(ch chan plc4go.PlcConnectionConnectResult)
if !c.sendCalDataWrite(ch, readWriteModel.Parameter_INTERFACE_OPTIONS_1_POWER_UP_SETTINGS, interfaceOptions1PowerUpSettings, requestContext, cbusOptions) {
return
}
- *cbusOptions = readWriteModel.NewCBusOptions(false, true, true, true, true, false, false, false, true)
+ *cbusOptions = readWriteModel.NewCBusOptions(true, true, true, true, true, false, false, false, true)
log.Debug().Msg("Interface options 1 power up settings set")
}
{
@@ -261,7 +262,7 @@ func (c *Connection) setupConnection(ch chan plc4go.PlcConnectionConnectResult)
if !c.sendCalDataWrite(ch, readWriteModel.Parameter_INTERFACE_OPTIONS_1, interfaceOptions1, requestContext, cbusOptions) {
return
}
- *cbusOptions = readWriteModel.NewCBusOptions(false, true, true, true, true, false, false, false, true)
+ *cbusOptions = readWriteModel.NewCBusOptions(true, true, true, true, true, false, false, false, true)
log.Debug().Msg("Interface options 1 set")
}
c.fireConnected(ch)