fix: 'hf 15 dump f' - now also selects card

This commit is contained in:
iceman1001 2019-03-14 10:23:58 +01:00
commit 1f8040596f

View file

@ -684,15 +684,15 @@ int CmdHF15Dump(const char *Cmd) {
//Validations
if (errors) return usage_15_dump();
if (!getUID(uid)) {
PrintAndLogEx(WARNING, "No tag found.");
return 1;
}
if (fileNameLen < 1) {
PrintAndLogEx(INFO, "Using UID as filename");
if (!getUID(uid)) {
PrintAndLogEx(WARNING, "No tag found.");
return 1;
}
fptr += sprintf(fptr, "hf-15-");
FillFileNameByUID(fptr, uid, "-dump", sizeof(uid));
}