--- a/LPCconnector/LPCAppObject.py Sun Apr 28 18:07:19 2013 +0900
+++ b/LPCconnector/LPCAppObject.py Mon Apr 29 10:39:44 2013 +0900
@@ -97,7 +97,6 @@
strbuf = self.HandleSerialTransaction(
GET_TRACE_VARIABLETransaction())
if strbuf is not None and len(strbuf) > 4 and self.PLCStatus == "Started":
- res=[]
size = len(strbuf) - 4
ctick = ctypes.create_string_buffer(strbuf[:4])
tick = ctypes.cast(ctick, ctypes.POINTER(ctypes.c_int)).contents
@@ -105,7 +104,7 @@
buff = ctypes.cast(cbuff, ctypes.c_void_p)
TraceVariables = UnpackDebugBuffer(buff, size, self._Idxs)
if TraceVariables is not None:
- return self.PLCStatus, tick.value, res
+ return self.PLCStatus, tick.value, TraceVariables
return self.PLCStatus, None, []
def GetLogMessage(self, level, msgid):