# HG changeset patch
# User Edouard Tisserant
# Date 1567665333 -7200
# Node ID fecdb71e75146b42a7f420d901e5866f627c5855
# Parent  534387caf43dea740b6156db92e3e22881f45bdc
Fixed sequel of earlier commit in PLCGenerator.py. Some ref to temporary variables are still not using the _TMP_ prefix. They are quite hard to find, so to be continued...

diff -r 534387caf43d -r fecdb71e7514 PLCGenerator.py
--- a/PLCGenerator.py	Mon Aug 26 08:54:02 2019 +0200
+++ b/PLCGenerator.py	Thu Sep 05 08:35:33 2019 +0200
@@ -935,7 +935,7 @@
             if invar.getformalParameter() == "EN":
                 if len(invar.getconnectionPointIn().getconnections()) > 0:
                     if blk.getinstanceName() is None:
-                        var_name = "%s%d_ENO" % (blk.gettypeName(), blk.getlocalId())
+                        var_name = "_TMP_%s%d_ENO" % (blk.gettypeName(), blk.getlocalId())
                     else:
                         var_name = "%s.ENO" % blk.getinstanceName()
                     return var_name