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/03/01 15:56:39 UTC

[plc4x] branch develop updated: fix(protocols/c-bus): fix power up

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 708c4e8  fix(protocols/c-bus): fix power up
708c4e8 is described below

commit 708c4e8415b5ae4513fc78bd6829a51f4b9013b7
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Mar 1 16:56:32 2022 +0100

    fix(protocols/c-bus): fix power up
---
 protocols/c-bus/src/main/resources/protocols/cbus/c-bus.mspec | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/protocols/c-bus/src/main/resources/protocols/cbus/c-bus.mspec b/protocols/c-bus/src/main/resources/protocols/cbus/c-bus.mspec
index d20360d..0ce32ad 100644
--- a/protocols/c-bus/src/main/resources/protocols/cbus/c-bus.mspec
+++ b/protocols/c-bus/src/main/resources/protocols/cbus/c-bus.mspec
@@ -524,16 +524,14 @@
 ]
 
 [type PowerUp
-    // TODO: skip potential garbage as first reserved might be wrong
-    [const    byte        something1     0x2B] // "+"
-    [const    byte        something2     0x2B] // "+"
+    [array    byte        garbage   terminated  '0x2B'                              ] // "+"
     [const    byte        cr 0x0D                                                   ] // 0xD == "<cr>"
     [const    byte        lf 0x0A                                                   ] // 0xA == "<lf>"
 ]
 
 [type ParameterChange
-    [const    byte        something1    0x3D] // "="
-    [const    byte        something2    0x3D] // "="
+    [const    byte        specialChar1      0x3D                                    ] // "="
+    [const    byte        specialChar2      0x3D                                    ] // "="
     [const    byte        cr 0x0D                                                   ] // 0xD == "<cr>"
     [const    byte        lf 0x0A                                                   ] // 0xA == "<lf>"
 ]