Bug in PLCGenerator when Coil is directly connected to LeftPowerRail fixed
authorpizza
Fri, 21 May 2010 13:29:01 +0200
changeset 501 edfa63d3c26d
parent 500 b3499ff87178
child 503 52689bda4686
Bug in PLCGenerator when Coil is directly connected to LeftPowerRail fixed
PLCGenerator.py
--- a/PLCGenerator.py	Wed May 19 22:16:29 2010 +0200
+++ b/PLCGenerator.py	Fri May 21 13:29:01 2010 +0200
@@ -926,6 +926,8 @@
         elif type(paths) == ListType:
             vars = [self.ComputePaths(path) for path in paths]
             return JoinList([(" AND ", ())], vars)
+        elif paths is None:
+            return [("TRUE", ())]
         else:
             return eval(paths)