You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/02/10 09:50:55 UTC
(plc4x) 01/03: refactor: Changed PlcSINT to serialize to int and not as byte (So it matches the way the other numerical types are serialized to XML)
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch fix/enum-discriminators
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 66807cb69c59bb2b67cd3ae1a99d25418b0a099d
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Fri Feb 9 18:49:59 2024 +0100
refactor: Changed PlcSINT to serialize to int and not as byte (So it matches the way the other numerical types are serialized to XML)
---
plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcSINT.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcSINT.java b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcSINT.java
index 622d0e45b4..852da57090 100644
--- a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcSINT.java
+++ b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcSINT.java
@@ -254,7 +254,7 @@ public class PlcSINT extends PlcIECValue<Byte> {
@Override
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
- writeBuffer.writeByte(getClass().getSimpleName(), value);
+ writeBuffer.writeInt(getClass().getSimpleName(), 8, value);
}
}