You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by hu...@apache.org on 2022/07/04 22:20:40 UTC

[plc4x] branch develop updated: Fix for BOOL writes on eip

This is an automated email from the ASF dual-hosted git repository.

hutcheb 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 06b6ba5e4 Fix for BOOL writes on eip
06b6ba5e4 is described below

commit 06b6ba5e4f6ce82d82b5cbecf7e3c2406a3c884a
Author: Ben Hutcheson <be...@gmail.com>
AuthorDate: Tue Jul 5 08:20:22 2022 +1000

    Fix for BOOL writes on eip
---
 .../org/apache/plc4x/java/eip/readwrite/protocol/EipProtocolLogic.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plc4j/drivers/eip/src/main/java/org/apache/plc4x/java/eip/readwrite/protocol/EipProtocolLogic.java b/plc4j/drivers/eip/src/main/java/org/apache/plc4x/java/eip/readwrite/protocol/EipProtocolLogic.java
index 6380a96f7..a8fc38f93 100644
--- a/plc4j/drivers/eip/src/main/java/org/apache/plc4x/java/eip/readwrite/protocol/EipProtocolLogic.java
+++ b/plc4j/drivers/eip/src/main/java/org/apache/plc4x/java/eip/readwrite/protocol/EipProtocolLogic.java
@@ -596,6 +596,9 @@ public class EipProtocolLogic extends Plc4xProtocolBase<EipPacket> implements Ha
         //ByteBuffer buffer = ByteBuffer.allocate(4+type.getSize()).order(ByteOrder.LITTLE_ENDIAN);
         ByteBuffer buffer = ByteBuffer.allocate(type.getSize()).order(ByteOrder.LITTLE_ENDIAN);
         switch (type) {
+            case BOOL:
+                buffer.put(value.getByte());
+                break;
             case SINT:
                 buffer.put(value.getByte());
                 break;