mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
Properly handle "hf mf dump" errors
This commit is contained in:
parent
e9891085c9
commit
96c1f39d0d
1 changed files with 3 additions and 3 deletions
|
@ -573,14 +573,14 @@ static int mfc_read_tag(iso14a_card_select_t *card, uint8_t *carddata, uint8_t n
|
||||||
SendCommandMIX(CMD_HF_ISO14443A_READER, ISO14A_CONNECT, 0, 0, NULL, 0);
|
SendCommandMIX(CMD_HF_ISO14443A_READER, ISO14A_CONNECT, 0, 0, NULL, 0);
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
if (WaitForResponseTimeout(CMD_ACK, &resp, 1500) == false) {
|
if (WaitForResponseTimeout(CMD_ACK, &resp, 1500) == false) {
|
||||||
PrintAndLogEx(DEBUG, "iso14443a card select timeout");
|
PrintAndLogEx(FAILED, "iso14443a card select timeout");
|
||||||
return PM3_ETIMEOUT;
|
return PM3_ETIMEOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t select_status = resp.oldarg[0];
|
uint64_t select_status = resp.oldarg[0];
|
||||||
if (select_status == 0) {
|
if (select_status == 0) {
|
||||||
PrintAndLogEx(DEBUG, "iso14443a card select failed");
|
PrintAndLogEx(FAILED, "iso14443a card select failed");
|
||||||
return PM3_SUCCESS;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
// store card info
|
// store card info
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue