Fixed typo in PLCGenerator.py
authorEdouard Tisserant
Thu, 14 Apr 2011 14:52:05 +0200
changeset 527 e307e1b27828
parent 526 79900abdfa3c
child 528 7ac133b11321
Fixed typo in PLCGenerator.py
PLCGenerator.py
--- a/PLCGenerator.py	Tue Apr 05 19:08:22 2011 +0200
+++ b/PLCGenerator.py	Thu Apr 14 14:52:05 2011 +0200
@@ -253,7 +253,7 @@
                 config += [(" CONSTANT", (tagname, "variable", (var_number, var_number + len(varlist.getvariable())), "constant"))]
             elif varlist.getretain():
                 config += [(" RETAIN", (tagname, "variable", (var_number, var_number + len(varlist.getvariable())), "retain"))]
-            elif varlist.getretain():
+            elif varlist.getnonretain():
                 config += [(" NON_RETAIN", (tagname, "variable", (var_number, var_number + len(varlist.getvariable())), "non_retain"))]
             config += [("\n", ())]
             # Generate any variable of this block