reverted PLCObject.py. ctypes.POINTER(ctypes.c_uint8) != string
authorEdouard Tisserant
Mon, 11 Mar 2013 09:50:55 +0900
changeset 971 c4550f76ae05
parent 970 0dd89c8eeef5
child 972 659198075ce4
reverted PLCObject.py. ctypes.POINTER(ctypes.c_uint8) != string
runtime/PLCObject.py
--- a/runtime/PLCObject.py	Sun Mar 10 20:29:55 2013 +0100
+++ b/runtime/PLCObject.py	Mon Mar 11 09:50:55 2013 +0900
@@ -188,7 +188,7 @@
 
             self._LogMessage = self.PLClibraryHandle.LogMessage
             self._LogMessage.restype = ctypes.c_int
-            self._LogMessage.argtypes = [ctypes.c_uint8, ctypes.POINTER(ctypes.c_uint8), ctypes.c_uint32]
+            self._LogMessage.argtypes = [ctypes.c_uint8, ctypes.c_char_p, ctypes.c_uint32]
             
             self._log_read_buffer = ctypes.create_string_buffer(1<<14) #16K
             self._GetLogMessage = self.PLClibraryHandle.GetLogMessage