SVGHMI: force MaxConnections sum back to zero, preventing it to grow indefinitely on each build.
authorEdouard Tisserant
Tue, 19 Oct 2021 09:41:48 +0200
changeset 3341 dce1d5413310
parent 3335 c001c373f66c
child 3343 c6de1a6cb655
SVGHMI: force MaxConnections sum back to zero, preventing it to grow indefinitely on each build.
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():