changes to get the threading working for sniff in mainDisplay. removed bugs
authorchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 5 Feb 2013 23:16:12 +0000 (23:16 +0000)
committerchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 5 Feb 2013 23:16:12 +0000 (23:16 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1456 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETMCPCAN.py
client/GoodFETMCPCANCommunication.py

index 06047ff..dcb3da3 100644 (file)
@@ -320,7 +320,7 @@ class GoodFETMCPCAN(GoodFETSPI):
         packet['length'] = dp5 & 0x0f
         
         #generate the data section
         packet['length'] = dp5 & 0x0f
         
         #generate the data section
-        for i in range(0,length):
+        for i in range(0,packet['length']):
             idx = 5 + i
             dbidx = 'db%d'%i
             packet[dbidx] = data[idx] 
             idx = 5 + i
             dbidx = 'db%d'%i
             packet[dbidx] = data[idx] 
index 4cbe133..3350aa8 100644 (file)
@@ -157,7 +157,7 @@ class GoodFETMCPCANCommunication:
             #add the data to list if the pointer was included
             if(data != None):
                 #data.append(self.client.packet2parsedstr(packet))
             #add the data to list if the pointer was included
             if(data != None):
                 #data.append(self.client.packet2parsedstr(packet))
-                data.put(self.client.packet2parsedstr(packet))
+                data.put(self.client.packet2parsed(packet))
             if(debug == True):
                 #check packet status
                 MCPstatusReg = self.client.MCPrxstatus();
             if(debug == True):
                 #check packet status
                 MCPstatusReg = self.client.MCPrxstatus();