]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhw.c
ADD: Enio's intuative function for the command: "hw tune", where you plot the tunin...
[proxmark3-svn] / client / cmdhw.c
index a526fe86b85f51c83a8cc484596402a7a69f3289..28cd01bad33d8c1defe6e4f448795514b9bfde45 100644 (file)
@@ -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 <p>");
+       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, "<loraw|hiraw|lopkd|hipkd> -- Set the ADC mux to a specific value"},
   {"tune",          CmdTune,        0, "Measure antenna tuning"},
-  {"version",       CmdVersion,     0, "Show version inforation about the connected Proxmark"},
+  {"version",       CmdVersion,     0, "Show version information about the connected Proxmark"},
   {NULL, NULL, 0, NULL}
 };
 
Impressum, Datenschutz