# HG changeset patch # User laurent # Date 1253809571 -7200 # Node ID 2c786431fe7221845cc5318b2e9a8a61b8a7cd2c # Parent 77e23bf04c3308614be1387bfd5b8445bedeba9b Bug on return debug tick test fixed diff -r 77e23bf04c33 -r 2c786431fe72 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()