mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-12 11:08:29 +08:00
take notice of read_once vs looping
This commit is contained in:
parent
e016582e1f
commit
452323fc11
2 changed files with 6 additions and 7 deletions
|
@ -1079,16 +1079,16 @@ static int CmdHF15Reader(const char *Cmd) {
|
|||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_lit0("", NULL, "read once"),
|
||||
arg_lit0("1", "one", "read once"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
bool loop_read = arg_get_lit(ctx, 1);
|
||||
bool read_once = arg_get_lit(ctx, 1);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
PrintAndLogEx(INFO, "Starting ISO15 reader mode");
|
||||
PrintAndLogEx(INFO, "press " _YELLOW_("`enter`") " to cancel");
|
||||
readHF15Uid(loop_read, true);
|
||||
readHF15Uid(!read_once, true);
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -873,17 +873,16 @@ static int CmdHFiClassReader(const char *Cmd) {
|
|||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_lit0("", NULL, "read once"),
|
||||
arg_lit0("1", "one", "read once"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
bool loop_read = arg_get_lit(ctx, 1);
|
||||
bool read_once = arg_get_lit(ctx, 1);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
|
||||
PrintAndLogEx(INFO, "Starting iCLASS reader mode");
|
||||
PrintAndLogEx(INFO, "press " _YELLOW_("`enter`") " to cancel");
|
||||
return read_iclass_csn(loop_read, true);
|
||||
return read_iclass_csn(!read_once, true);
|
||||
}
|
||||
|
||||
static int CmdHFiClassELoad(const char *Cmd) {
|
||||
|
|
Loading…
Reference in a new issue