runtime/PLCObject.py
changeset 461 bcbc472c0ba8
parent 460 73a53278833b
child 462 274e83a5534e
equal deleted inserted replaced
460:73a53278833b 461:bcbc472c0ba8
   397                         if offset >= size:
   397                         if offset >= size:
   398                             PLCprint("Debug error - buffer too small !")
   398                             PLCprint("Debug error - buffer too small !")
   399                         break
   399                         break
   400             self._FreeDebugData()
   400             self._FreeDebugData()
   401             self.PLClibraryLock.release()
   401             self.PLClibraryLock.release()
   402             if offset == size:
   402             if offset == size.value:
   403                 return self.PLCStatus, tick.value, res
   403                 return self.PLCStatus, tick.value, res
   404             else:
   404             else:
   405                 PLCprint("Debug error - bad buffer unpack !")
   405                 PLCprint("Debug error - bad buffer unpack !")
   406         return self.PLCStatus, None, None
   406         return self.PLCStatus, None, None
   407 
   407