mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
chg: hints - allow ON/OFF
This commit is contained in:
parent
fb3f4ecd36
commit
e5b38c46c6
1 changed files with 17 additions and 6 deletions
|
@ -201,13 +201,24 @@ static int CmdHints(const char *Cmd) {
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param_getchar(Cmd, 0) != 0x00) {
|
if (strlen(Cmd) > 1){
|
||||||
ms = param_get32ex(Cmd, 0, 0, 10);
|
str_lower((char *)Cmd);
|
||||||
if (ms == 0)
|
if (str_startswith(Cmd, "of")) {
|
||||||
g_showhints = false;
|
g_showhints = false;
|
||||||
else
|
} else {
|
||||||
g_showhints = true;
|
g_showhints = true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (param_getchar(Cmd, 0) != 0x00) {
|
||||||
|
ms = param_get32ex(Cmd, 0, 0, 10);
|
||||||
|
if (ms == 0) {
|
||||||
|
g_showhints = false;
|
||||||
|
} else {
|
||||||
|
g_showhints = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "Hints are %s", (g_showhints) ? "ON" : "OFF");
|
PrintAndLogEx(INFO, "Hints are %s", (g_showhints) ? "ON" : "OFF");
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue