From b7de45ade031d2b780bad27428dff03ff4c317e1 Mon Sep 17 00:00:00 2001 From: travisutk Date: Sat, 3 Nov 2012 18:26:35 +0000 Subject: [PATCH] Added isniff listing to goodfet.mcpcan help, also added rate-changing to it. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1309 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/goodfet.mcpcan | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/goodfet.mcpcan b/client/goodfet.mcpcan index b532e81..0c0779c 100755 --- a/client/goodfet.mcpcan +++ b/client/goodfet.mcpcan @@ -20,6 +20,7 @@ if(len(sys.argv)==1): #print "%s poke 0x$adr 0x$val" % sys.argv[0]; print "\n%s sniff [kHz]" % sys.argv[0]; + print "\n%s isniff [kHz]" % sys.argv[0]; print "\nSupported rates: 83.3, 100, 125, 250, 500, 1000 kHz."; sys.exit(); @@ -60,6 +61,9 @@ if(sys.argv[1]=="sniff"): if(sys.argv[1]=="isniff"): """ An intelligent sniffer, decodes message format """ """ More features to be added soon """ + if len(sys.argv)>2: + rate=float(sys.argv[2]); + client.MCPsetrate(rate); client.MCPreqstatListenOnly(); while 1: packet=client.rxpacket(); -- 2.20.1