mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
add l/h option to hw tune and optimize order of tuning
This commit is contained in:
parent
6fcb5dda51
commit
fdcfbdcc21
8 changed files with 69 additions and 22 deletions
|
@ -2048,10 +2048,20 @@ int CmdSamples(const char *Cmd)
|
|||
|
||||
int CmdTuneSamples(const char *Cmd)
|
||||
{
|
||||
int timeout = 0;
|
||||
int timeout = 0, arg = FLAG_TUNE_ALL;
|
||||
|
||||
if(*Cmd == 'l') {
|
||||
arg = FLAG_TUNE_LF;
|
||||
} else if (*Cmd == 'h') {
|
||||
arg = FLAG_TUNE_HF;
|
||||
} else if (*Cmd != '\0') {
|
||||
PrintAndLog("use 'tune' or 'tune l' or 'tune h'");
|
||||
return 0;
|
||||
}
|
||||
|
||||
printf("\nMeasuring antenna characteristics, please wait...");
|
||||
|
||||
UsbCommand c = {CMD_MEASURE_ANTENNA_TUNING};
|
||||
UsbCommand c = {CMD_MEASURE_ANTENNA_TUNING, {arg, 0, 0}};
|
||||
SendCommand(&c);
|
||||
|
||||
UsbCommand resp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue