mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
fix return value
This commit is contained in:
parent
68d9fe3232
commit
0119049cbe
1 changed files with 6 additions and 4 deletions
|
@ -404,10 +404,12 @@ static int xerox_select_card(iso14b_card_select_t *card) {
|
|||
SendCommandNG(CMD_HF_ISO14443B_COMMAND, (uint8_t *)&packet, sizeof(iso14b_raw_cmd_t));
|
||||
PacketResponseNG resp;
|
||||
if (WaitForResponseTimeout(CMD_HF_ISO14443B_COMMAND, &resp, TIMEOUT) == false) {
|
||||
if (resp.status == PM3_SUCCESS) {
|
||||
memcpy(card, (iso14b_card_select_t *)resp.data.asBytes, sizeof(iso14b_card_select_t));
|
||||
}
|
||||
return resp.length;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (resp.status == PM3_SUCCESS) {
|
||||
memcpy(card, (iso14b_card_select_t *)resp.data.asBytes, sizeof(iso14b_card_select_t));
|
||||
return resp.status;
|
||||
}
|
||||
} // retry
|
||||
|
||||
|
|
Loading…
Reference in a new issue