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/13 15:46:20 UTC

[plc4x] 03/03: plc4go: fixed messup on S7Field.java from 6b422943

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 9841e20067dbda3d63aa510255f580429ab9f9a6
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Apr 13 17:45:59 2021 +0200

    plc4go: fixed messup on S7Field.java from 6b422943
---
 .../src/main/java/org/apache/plc4x/java/s7/readwrite/field/S7Field.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/field/S7Field.java b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/field/S7Field.java
index 790e202..543a863 100644
--- a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/field/S7Field.java
+++ b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/field/S7Field.java
@@ -270,7 +270,7 @@ public class S7Field implements PlcField, XmlSerializable {
             }
         } else if ((matcher = ADDRESS_PATTERN.matcher(fieldString)).matches()) {
             TransportSize dataType = TransportSize.valueOf(matcher.group(DATA_TYPE));
-            MemoryArea memoryArea = MemoryArea.DATA_BLOCKS;
+            MemoryArea memoryArea = getMemoryAreaForShortName(matcher.group(MEMORY_AREA));
             Short transferSizeCode = getSizeCode(matcher.group(TRANSFER_SIZE_CODE));
             int byteOffset = checkByteOffset(Integer.parseInt(matcher.group(BYTE_OFFSET)));
             byte bitOffset = 0;