fix: 'hf 15 dump f' - now also selects card
This commit is contained in:
@@ -684,15 +684,15 @@ int CmdHF15Dump(const char *Cmd) {
|
|||||||
//Validations
|
//Validations
|
||||||
if (errors) return usage_15_dump();
|
if (errors) return usage_15_dump();
|
||||||
|
|
||||||
|
if (!getUID(uid)) {
|
||||||
|
PrintAndLogEx(WARNING, "No tag found.");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (fileNameLen < 1) {
|
if (fileNameLen < 1) {
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "Using UID as filename");
|
PrintAndLogEx(INFO, "Using UID as filename");
|
||||||
|
|
||||||
if (!getUID(uid)) {
|
|
||||||
PrintAndLogEx(WARNING, "No tag found.");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
fptr += sprintf(fptr, "hf-15-");
|
fptr += sprintf(fptr, "hf-15-");
|
||||||
FillFileNameByUID(fptr, uid, "-dump", sizeof(uid));
|
FillFileNameByUID(fptr, uid, "-dump", sizeof(uid));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user