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 2021/04/24 21:30:44 UTC
[plc4x] 01/08: plc4j: fixed inconsistency between xml read/write on
booleans
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
commit f53a89b7cba4470060253a199f965c95e94a8ccf
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Apr 23 18:41:48 2021 +0200
plc4j: fixed inconsistency between xml read/write on booleans
---
.../java/org/apache/plc4x/java/spi/generation/ReadBufferXmlBased.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/generation/ReadBufferXmlBased.java b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/generation/ReadBufferXmlBased.java
index 8139677..da639fc 100644
--- a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/generation/ReadBufferXmlBased.java
+++ b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/generation/ReadBufferXmlBased.java
@@ -68,7 +68,7 @@ public class ReadBufferXmlBased implements ReadBuffer, BufferCommons {
public boolean readBit(String logicalName, WithReaderArgs... readerArgs) throws ParseException {
String bit = decode(logicalName, rwBitKey, 1);
move(1);
- return bit.equals("1");
+ return bit.equals("true");
}
@Override