# HG changeset patch # User Edouard Tisserant # Date 1367199584 -32400 # Node ID 30eae94f35f7d612da9ef26fd163f62aabcb90a2 # Parent b02a30880829bceed2082806aaa7f95599df4adb Fixed typo diff -r b02a30880829 -r 30eae94f35f7 LPCconnector/LPCAppObject.py --- 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):