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 2018/09/14 14:35:00 UTC

[incubator-plc4x] branch feature/api-redesign-chris-c updated: [ADS] fixed small endianness problem in decoder

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

sruehl pushed a commit to branch feature/api-redesign-chris-c
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/feature/api-redesign-chris-c by this push:
     new d0e2261  [ADS] fixed small endianness problem in decoder
d0e2261 is described below

commit d0e2261a2c7eb103d60bd8efc676cbfb0220a4ea
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Sep 14 16:34:57 2018 +0200

    [ADS] fixed small endianness problem in decoder
---
 .../org/apache/plc4x/java/ads/protocol/util/LittleEndianDecoder.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/protocol/util/LittleEndianDecoder.java b/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/protocol/util/LittleEndianDecoder.java
index 88971aa..70cbd21 100644
--- a/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/protocol/util/LittleEndianDecoder.java
+++ b/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/protocol/util/LittleEndianDecoder.java
@@ -102,7 +102,7 @@ public class LittleEndianDecoder {
             case INT32: {
                 LinkedList<Long> values = new LinkedList<>();
                 while (wrappedBuffer.isReadable()) {
-                    long aLong = wrappedBuffer.readInt();
+                    long aLong = wrappedBuffer.readIntLE();
                     values.offer(aLong);
                 }
                 return new DefaultIntegerFieldItem(values.toArray(new Long[0]));