X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/76c7e6c36368c3fc23dc4fab1fe5852023c78fac..02306bac2dc44bd1de5422f9db127b231cde304f:/client/cmdhw.c diff --git a/client/cmdhw.c b/client/cmdhw.c index a526fe86..28cd01ba 100644 --- a/client/cmdhw.c +++ b/client/cmdhw.c @@ -15,6 +15,7 @@ #include "ui.h" #include "proxmark3.h" #include "cmdparser.h" +#include "cmddata.h" #include "cmdhw.h" #include "cmdmain.h" @@ -392,6 +393,20 @@ int CmdTune(const char *Cmd) { UsbCommand c = {CMD_MEASURE_ANTENNA_TUNING}; SendCommand(&c); + + char cmdp = param_getchar(Cmd, 0); + if (cmdp == 'h' || cmdp == 'H') { + PrintAndLog("Usage: hw tune
");
+ PrintAndLog("");
+ PrintAndLog(" sample: hw tune");
+ PrintAndLog(" hw tune p");
+ return 0;
+ }
+
+ if ( cmdp == 'p' || cmdp == 'P'){
+ ShowGraphWindow();
+ CmdTuneSamples("");
+ }
return 0;
}
@@ -418,7 +433,7 @@ static command_t CommandTable[] =
{"setlfdivisor", CmdSetDivisor, 0, "<19 - 255> -- Drive LF antenna at 12Mhz/(divisor+1)"},
{"setmux", CmdSetMux, 0, "