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/05/30 13:11:19 UTC
[incubator-plc4x] 01/03: fixed wrong constant for calendar
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git
commit 238a2b0f14cfeebd6788b16bb6a5d7f00ddf6e38
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed May 30 11:34:59 2018 +0200
fixed wrong constant for calendar
---
.../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 4c705b2..c66a353 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
@@ -48,7 +48,7 @@ public class LittleEndianDecoder {
public static Length getLengthFor(Class<?> clazz, long defaultValue) {
if (Calendar.class.isAssignableFrom(clazz)) {
- return Length.of(4);
+ return Length.of(8);
}
return Length.of(LENGTH_MAP.getOrDefault(clazz, defaultValue));
}
--
To stop receiving notification emails like this one, please contact
sruehl@apache.org.