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 15:49:05 UTC

[plc4x] branch develop updated: fix(plc4go/cbus): fixed c-bus reporting a request to pci falsely

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 8eef8857f fix(plc4go/cbus): fixed c-bus reporting a request to pci falsely
8eef8857f is described below

commit 8eef8857fcb80aa78ab455d62fd6fbffea54ca4a
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Aug 4 17:48:59 2022 +0200

    fix(plc4go/cbus): fixed c-bus reporting a request to pci falsely
---
 plc4go/internal/cbus/MessageCodec.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plc4go/internal/cbus/MessageCodec.go b/plc4go/internal/cbus/MessageCodec.go
index bb1fad9f9..33685dd8d 100644
--- a/plc4go/internal/cbus/MessageCodec.go
+++ b/plc4go/internal/cbus/MessageCodec.go
@@ -153,7 +153,9 @@ lookingForTheEnd:
 		} else {
 			// after 90ms we give up finding a lf
 			m.lastPackageHash, m.hashEncountered = 0, 0
-			requestToPci = true
+			if indexOfCR >= 0 {
+				requestToPci = true
+			}
 		}
 	}
 	if !pciResponse && !requestToPci {