Bug on return debug tick test fixed
authorlaurent
Thu, 24 Sep 2009 18:26:11 +0200
changeset 400 2c786431fe72
parent 399 77e23bf04c33
child 401 8106a853a7c7
Bug on return debug tick test fixed
runtime/PLCObject.py
--- a/runtime/PLCObject.py	Thu Sep 24 18:22:31 2009 +0200
+++ b/runtime/PLCObject.py	Thu Sep 24 18:26:11 2009 +0200
@@ -379,7 +379,8 @@
             self.PLClibraryLock.acquire()
             tick = self._WaitDebugData()
             #PLCprint("Debug tick : %d"%tick)
-            if tick == -1:
+            if tick == 2**32 - 1:
+                tick = -1
                 res = None
             else:
                 idx = ctypes.c_int()