Browse Source

Nodeset-Compiler: fix return value

matkonnerth 5 years ago
parent
commit
b7e772e4da
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/nodeset_compiler/backend_open62541_nodes.py

+ 2 - 2
tools/nodeset_compiler/backend_open62541_nodes.py

@@ -278,9 +278,9 @@ def generateValueCode(node, parentNode, nodeset, bootstrapping=True):
     #  0: x-dim | x>0
     #  n: n-dim | n>0
     if (len(node.value) == 0):
-        return ["", ""]
+        return ["", "", ""]
     if not isinstance(node.value[0], Value):
-        return ["", ""]
+        return ["", "", ""]
 
     dataTypeNode = nodeset.getDataTypeNode(parentNode.dataType)