mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 03:48:33 +08:00
fix: 'hf iclass reader' - drop field when finished.
This commit is contained in:
parent
b31afcfc31
commit
220614ca10
1 changed files with 9 additions and 3 deletions
|
@ -527,8 +527,10 @@ int HFiClassReader(const char *Cmd, bool loop, bool verbose) {
|
|||
// no tag found or button pressed
|
||||
if ( (readStatus == 0 && !loop) || readStatus == 0xFF) {
|
||||
// abort
|
||||
if (verbose) PrintAndLog("[-] Quitting...");
|
||||
return 0;
|
||||
if (verbose) PrintAndLog("[-] Quitting..."); {
|
||||
DropField();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if( readStatus & FLAG_ICLASS_READER_CSN){
|
||||
PrintAndLog("CSN: %s", sprint_hex(data, 8));
|
||||
|
@ -546,12 +548,16 @@ int HFiClassReader(const char *Cmd, bool loop, bool verbose) {
|
|||
PrintAndLog(" : Possible iClass %s", (legacy) ? "(legacy tag)" : "(NOT legacy tag)");
|
||||
}
|
||||
|
||||
if (tagFound && !loop) return 1;
|
||||
if (tagFound && !loop) {
|
||||
DropField();
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
if (verbose) PrintAndLog("[!] command execute timeout");
|
||||
}
|
||||
if (!loop) break;
|
||||
}
|
||||
DropField();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue