Fix: hf 14a sim parsing args was taking tag type as number of reads if no -n option given

This commit is contained in:
DidierA 2022-11-20 01:01:11 +01:00
parent 971452f817
commit f828a727c9

View file

@ -715,7 +715,7 @@ int CmdHF14ASim(const char *Cmd) {
useUIDfromEML = false;
}
uint8_t exitAfterNReads = arg_get_int(ctx, 3);
uint8_t exitAfterNReads = arg_get_int_def(ctx, 3, 0);
if (arg_get_lit(ctx, 4)) {
flags |= FLAG_NR_AR_ATTACK;