Update cmdhf14a.c

This commit is contained in:
libin-ka 2020-10-16 13:19:05 +08:00 committed by GitHub
parent e6158a48ec
commit 18ab921cd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -714,7 +714,7 @@ static int SelectCard14443_4(bool disconnect, iso14a_card_select_t *card) {
// Anticollision + SELECT card
UsbCommand ca = {CMD_READER_ISO_14443a, {ISO14A_CONNECT | ISO14A_NO_DISCONNECT, 0, 0}};
SendCommand(&ca);
if (!WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {
if (!WaitForResponseTimeout(CMD_NACK, &resp, 500)) {
PrintAndLogEx(ERR, "Proxmark connection timeout.");
return 1;
}