]> 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 68e992765a4ea4c92a3578c12a25d72754a04aed..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;
 }
 
Impressum, Datenschutz