--- 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