take notice of read_once vs looping

This commit is contained in:
iceman1001 2020-10-18 00:46:15 +02:00
parent e016582e1f
commit 452323fc11
2 changed files with 6 additions and 7 deletions

View file

@ -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;
}

View file

@ -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) {