equal
deleted
inserted
replaced
390 if c_type is not None and offset < size: |
390 if c_type is not None and offset < size: |
391 res.append(unpack_func(ctypes.cast(cursor, |
391 res.append(unpack_func(ctypes.cast(cursor, |
392 ctypes.POINTER(c_type)).contents)) |
392 ctypes.POINTER(c_type)).contents)) |
393 offset += ctypes.sizeof(c_type) |
393 offset += ctypes.sizeof(c_type) |
394 else: |
394 else: |
395 PLCprint("Debug error !") |
395 if c_type is None: |
|
396 PLCprint("Debug error - " + iectype + " not supported !") |
|
397 if offset >= size: |
|
398 PLCprint("Debug error - buffer too small !") |
396 break |
399 break |
397 self._FreeDebugData() |
400 self._FreeDebugData() |
398 self.PLClibraryLock.release() |
401 self.PLClibraryLock.release() |
399 return self.PLCStatus, tick.value, res |
402 if offset == size: |
|
403 return self.PLCStatus, tick.value, res |
|
404 else: |
|
405 PLCprint("Debug error - bad buffer unpack !") |
400 return self.PLCStatus, None, None |
406 return self.PLCStatus, None, None |
401 |
407 |