svghmi/svghmi.py
changeset 3402 3f54a680fe45
parent 3399 95e0b926a8c3
child 3405 fdc12f7d27c8
child 3498 cf4e6a7d40f8
--- a/svghmi/svghmi.py	Tue Nov 30 09:52:42 2021 +0100
+++ b/svghmi/svghmi.py	Sun Jan 16 16:57:56 2022 +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: