svghmi/svghmi.py
branchRuntimeLists
changeset 3399 95e0b926a8c3
parent 3381 3a0908b0319d
child 3405 fdc12f7d27c8
child 3498 cf4e6a7d40f8
--- a/svghmi/svghmi.py	Thu Dec 16 08:32:58 2021 +0100
+++ b/svghmi/svghmi.py	Thu Dec 23 11:36:37 2021 +0100
@@ -191,14 +191,14 @@
             if hasattr(node, "iectype"):
                 sz = DebugTypesSize.get(node.iectype, 0)
                 variable_decl_array += [
-                    "{&(" + node.cpath + "), " + node.iectype + {
+                    "HMITREE_ITEM_INITIALIZER(" + node.cpath + ", " + node.iectype + {
                         "EXT": "_P_ENUM",
                         "IN":  "_P_ENUM",
                         "MEM": "_O_ENUM",
                         "OUT": "_O_ENUM",
                         "VAR": "_ENUM"
                     }[node.vartype] + ", " +
-                    str(buf_index) + ", 0, }"]
+                    str(buf_index) + ")"]
                 buf_index += sz
                 item_count += 1
                 if len(node.path) == 1: