diff -r c001c373f66c -r dce1d5413310 svghmi/svghmi.py --- a/svghmi/svghmi.py Fri Oct 08 09:13:02 2021 +0200 +++ b/svghmi/svghmi.py Tue Oct 19 09:41:48 2021 +0200 @@ -56,6 +56,8 @@ def Generate_C(self, buildpath, varlist, IECCFLAGS): global hmi_tree_root, on_hmitree_update, maxConnectionsTotal + maxConnectionsTotal = 0 + already_found_watchdog = False found_SVGHMI_instance = False for CTNChild in self.GetCTR().IterChildren():