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 07:35:15 UTC

[plc4x] branch develop updated: fix(plc4go/cbus): fixed broken code

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 e0f86d9c6 fix(plc4go/cbus): fixed broken code
e0f86d9c6 is described below

commit e0f86d9c697be07905bf8fa509e307072e898a7d
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Aug 2 09:35:02 2022 +0200

    fix(plc4go/cbus): fixed broken code
---
 plc4go/internal/cbus/Connection.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plc4go/internal/cbus/Connection.go b/plc4go/internal/cbus/Connection.go
index 8313bf04c..196c230aa 100644
--- a/plc4go/internal/cbus/Connection.go
+++ b/plc4go/internal/cbus/Connection.go
@@ -218,8 +218,8 @@ func (c *Connection) setupConnection(ch chan plc4go.PlcConnectionConnectResult)
 		}
 
 		select {
-		case receivedResetEcho := <-receivedResetEchoChan:
-			log.Debug().Msgf("We received the echo {}", receivedResetEcho)
+		case <-receivedResetEchoChan:
+			log.Debug().Msgf("We received the echo")
 		case err := <-receivedResetEchoErrorChan:
 			c.fireConnectionError(errors.Wrap(err, "Error receiving of Reset"), ch)
 			return
@@ -348,8 +348,8 @@ func (c *Connection) sendCalDataWrite(ch chan plc4go.PlcConnectionConnectResult,
 	}
 
 	select {
-	case receivedResetEcho := <-directCommandAckChan:
-		log.Debug().Msgf("We received the ack {}", receivedResetEcho)
+	case <-directCommandAckChan:
+		log.Debug().Msgf("We received the ack")
 	case err := <-directCommandAckErrorChan:
 		c.fireConnectionError(errors.Wrap(err, "Error receiving of ack"), ch)
 		return false