diff --git a/client/src/cmdhf15.c b/client/src/cmdhf15.c index 73a7778a8..b4cde234f 100644 --- a/client/src/cmdhf15.c +++ b/client/src/cmdhf15.c @@ -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; } diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index 4e065090c..5a5e07373 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -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) {