Fixed typo
authorEdouard Tisserant
Mon, 29 Apr 2013 10:39:44 +0900
changeset 42 30eae94f35f7
parent 41 b02a30880829
child 43 003a9ae0cf66
Fixed typo
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):