From: chrishoder Date: Sun, 20 Jan 2013 21:29:38 +0000 (+0000) Subject: fixed error X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=367188d60f5a37dd9847aaf3b8efc442db4415dd fixed error git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1394 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFETMCPCANCommunication.py b/client/GoodFETMCPCANCommunication.py index 609bf88..e59a91b 100644 --- a/client/GoodFETMCPCANCommunication.py +++ b/client/GoodFETMCPCANCommunication.py @@ -62,8 +62,8 @@ class GoodFETMCPCANCommunication: def reset(self): self.client.MCPsetup(); - def sniff(self,freq,duration,filename,description, verbose=True, comment=None): - if(filename=None): + def sniff(self,freq,duration,description, verbose=True, comment=None, filename=None,): + if(filename==None): filename=self.filename self.client.MCPsetrate(freq); outfile = open(filename,'a'); @@ -306,7 +306,7 @@ if __name__ == "__main__": # if(args.verb=="sniff"): - comm.sniff(freq=freq,duration=duration,filename=filename,description=description,verbose=verbose,comment=comments) + comm.sniff(freq=freq,duration=duration,description=description,verbose=verbose,comment=comments,filename=filename)