X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETMCPCANCommunication.py;h=107b6eafc141b25226c1bdab7bd77892c269215b;hp=9c9c48951075771851e97e06f941682f927dc415;hb=fd4b3edc5c7a68234c6278875b0057e8b1f4d049;hpb=fbd16932e0d96f1f9611d8a881b8eefe02f1f5cb 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