added display to the mainDisplay that shows packets streaming
authorchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 5 Feb 2013 03:36:52 +0000 (03:36 +0000)
committerchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 5 Feb 2013 03:36:52 +0000 (03:36 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1449 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETMCPCAN.py
client/GoodFETMCPCANCommunication.py

index 189ef56..f003e01 100644 (file)
@@ -297,11 +297,10 @@ class GoodFETMCPCAN(GoodFETSPI):
         dp2 = ord(data[1])
         dp5 = ord(data[4])
         
         dp2 = ord(data[1])
         dp5 = ord(data[4])
         
-        #converts the CAN message to a string
         msg="";
         
         
         msg="";
         
         
-        
+
         #get the ide bit. allows us to check to see if we have an extended
         #frame
         ide = (dp2 & 0x0f)>>3
         #get the ide bit. allows us to check to see if we have an extended
         #frame
         ide = (dp2 & 0x0f)>>3
index 9c296fe..a907372 100644 (file)
@@ -20,6 +20,7 @@ import os
 from random import randrange
 from GoodFETMCPCAN import GoodFETMCPCAN;
 from intelhex import IntelHex;
 from random import randrange
 from GoodFETMCPCAN import GoodFETMCPCAN;
 from intelhex import IntelHex;
+import Queue
 
 class GoodFETMCPCANCommunication:
     
 
 class GoodFETMCPCANCommunication:
     
@@ -155,8 +156,8 @@ class GoodFETMCPCANCommunication:
                 
             #add the data to list if the pointer was included
             if(data != None):
                 
             #add the data to list if the pointer was included
             if(data != None):
-                data.append(self.client.packet2parsedstr(packet))
-            
+                #data.append(self.client.packet2parsedstr(packet))
+                data.put(self.client.packet2parsedstr(packet))
             if(debug == True):
                 #check packet status
                 MCPstatusReg = self.client.MCPrxstatus();
             if(debug == True):
                 #check packet status
                 MCPstatusReg = self.client.MCPrxstatus();