# HG changeset patch
# User Edouard Tisserant
# Date 1634629308 -7200
# Node ID dce1d541331031eef6ae2461e1f55114f77bc814
# Parent  c001c373f66cca6b0659830e89309e625fc8749d
SVGHMI: force MaxConnections sum back to zero, preventing it to grow indefinitely on each build.

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():