Commit 688e6079 authored by Alexander Schrode's avatar Alexander Schrode Committed by oroulet

xmlimport change datatype field default

The default DataType of a struct field should be i=24 -> BaseDataType.
Found this error in Opc.Ua.Plastics.Rubber.GeneralTypes
parent 84327102
......@@ -76,7 +76,7 @@ class NodeData:
class Field:
def __init__(self, data):
self.datatype = data.get("DataType", "")
self.datatype = data.get("DataType", "i=24") # Default is BaseDataType
self.name = data.get("Name")
self.dname = data.get("DisplayName", "")
self.optional = bool(data.get("IsOptional", False))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment