--- a/runtime/PLCObject.py Thu Sep 04 14:57:52 2008 +0200
+++ b/runtime/PLCObject.py Thu Sep 04 15:56:25 2008 +0200
@@ -294,20 +294,21 @@
tick = self._WaitDebugData()
- typename = ctypes.c_char_p()
- for given_idx in self._Idxs:
- buffer=self._IterDebugData(ctypes.byref(idx), ctypes.byref(typename))
- c_type = self.TypeTranslator.get(typename.value, None)
- if c_type is not None and given_idx == idx.value:
- res.append(ctypes.cast(buffer,
- ctypes.POINTER(c_type)).contents.value)
- print "Debug error idx : %d, expected_idx %d, type : %s"%(idx.value, given_idx,typename.value)
+ typename = ctypes.c_char_p() + for given_idx in self._Idxs: + buffer=self._IterDebugData(ctypes.byref(idx), ctypes.byref(typename)) + c_type = self.TypeTranslator.get(typename.value, None) + if c_type is not None and given_idx == idx.value: + res.append(ctypes.cast(buffer, + ctypes.POINTER(c_type)).contents.value) + print "Debug error idx : %d, expected_idx %d, type : %s"%(idx.value, given_idx,typename.value)