fix 'hf 14a read' needs a disconnect if failed.

fix 'hf mf csave'  now prints which card size it is trying to dump
This commit is contained in:
iceman1001 2017-08-29 14:47:17 +02:00
commit 9f54a5e4b9
2 changed files with 3 additions and 1 deletions

View file

@ -174,6 +174,7 @@ int CmdHF14AReader(const char *Cmd) {
UsbCommand resp; UsbCommand resp;
if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) { if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {
if (Cmd[0] != 's') PrintAndLog("iso14443a card select failed"); if (Cmd[0] != 's') PrintAndLog("iso14443a card select failed");
SendCommand(&cDisconnect);
return 0; return 0;
} }

View file

@ -2332,6 +2332,7 @@ int CmdHF14AMfCSave(const char *Cmd) {
case '2': case '2':
case '4': case '4':
numblocks = NumOfBlocks(ctmp); numblocks = NumOfBlocks(ctmp);
PrintAndLog("Saving magic mifare %cK", ctmp);
cmdp++; cmdp++;
break; break;
case 'u': case 'u':