# SNIFF
##########################
# 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()
#reset eveything on the chip
self.client.serInit()
packet=self.client.fastrxpacket();
else:
packet=self.client.rxpacket();
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
if(debug == True):
#check packet status