mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-24 06:55:27 -07:00
CHG: syntax suger
This commit is contained in:
parent
e994394a40
commit
7144c99b07
1 changed files with 3 additions and 7 deletions
|
@ -178,8 +178,7 @@ int CmdHFEPAPACEReplay(const char *Cmd)
|
||||||
|
|
||||||
// UI-related stuff
|
// UI-related stuff
|
||||||
|
|
||||||
static const command_t CommandTable[] =
|
static const command_t CommandTable[] = {
|
||||||
{
|
|
||||||
{"help", CmdHelp, 1, "This help"},
|
{"help", CmdHelp, 1, "This help"},
|
||||||
{"cnonces", CmdHFEPACollectPACENonces, 0,
|
{"cnonces", CmdHFEPACollectPACENonces, 0,
|
||||||
"<m> <n> <d> Acquire n>0 encrypted PACE nonces of size m>0 with d sec pauses"},
|
"<m> <n> <d> Acquire n>0 encrypted PACE nonces of size m>0 with d sec pauses"},
|
||||||
|
@ -188,18 +187,15 @@ static const command_t CommandTable[] =
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd)
|
int CmdHelp(const char *Cmd) {
|
||||||
{
|
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHFEPA(const char *Cmd)
|
int CmdHFEPA(const char *Cmd) {
|
||||||
{
|
|
||||||
// flush
|
// flush
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
//WaitForResponseTimeout(CMD_ACK,NULL,100);
|
//WaitForResponseTimeout(CMD_ACK,NULL,100);
|
||||||
|
|
||||||
// parse
|
// parse
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue