--- a/PLCGenerator.py Tue Oct 10 14:01:46 2017 +0300
+++ b/PLCGenerator.py Tue Oct 10 16:38:57 2017 +0300
@@ -1064,7 +1064,7 @@
if parameter in inout_variables:
expression = self.ComputeExpression(body, connections, executionOrderId > 0, True)
if expression is not None:
- inout_variables[parameter] = value
+ inout_variables[parameter] = expression
else:
expression = self.ComputeExpression(body, connections, executionOrderId > 0)
if expression is not None:
--- a/tests/tools/check_source.sh Tue Oct 10 14:01:46 2017 +0300
+++ b/tests/tools/check_source.sh Tue Oct 10 16:38:57 2017 +0300
@@ -240,6 +240,7 @@
enable=$enable,E1305 # (too-many-format-args) Too many arguments for format string
enable=$enable,E0704 # (misplaced-bare-raise) The raise statement is not inside an except clause
enable=$enable,C0123 # (unidiomatic-typecheck) Using type() instead of isinstance() for a typecheck.
+ enable=$enable,E0601 # (used-before-assignment)
# enable=
options=