From fd4b3edc5c7a68234c6278875b0057e8b1f4d049 Mon Sep 17 00:00:00 2001 From: chrishoder Date: Tue, 5 Feb 2013 02:42:39 +0000 Subject: [PATCH 1/1] update to threading of sniff on mainDisplay as well as added option to sniff in communication file git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1447 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFETMCPCANCommunication.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/GoodFETMCPCANCommunication.py b/client/GoodFETMCPCANCommunication.py index 9c9c489..107b6ea 100644 --- a/client/GoodFETMCPCANCommunication.py +++ b/client/GoodFETMCPCANCommunication.py @@ -72,7 +72,7 @@ class GoodFETMCPCANCommunication: # SNIFF ########################## - def sniff(self,freq,duration,description, verbose=True, comment=None, filename=None, standardid=None, debug=False, faster=False, parsed=True): + def sniff(self,freq,duration,description, verbose=True, comment=None, filename=None, standardid=None, debug=False, faster=False, parsed=True, data = None): #reset eveything on the chip self.client.serInit() @@ -152,6 +152,10 @@ class GoodFETMCPCANCommunication: packet=self.client.fastrxpacket(); else: packet=self.client.rxpacket(); + + #add the data to list if the pointer was included + if(data != None): + data.append(packet) if(debug == True): #check packet status -- 2.20.1