Skip to content

Commit

Permalink
nfc_initiator_target_is_present(): Fixes issue nfc-tools#267, second …
Browse files Browse the repository at this point in the history
…attempt
  • Loading branch information
doegox committed Feb 9, 2014
1 parent 766ed55 commit fd30e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnfc/chips/pn53x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ static int pn53x_ISO14443A_4_is_present(struct nfc_device *pnd)
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%s", "target_is_present(): Ping -4A");
if (CHIP_DATA(pnd)->type == PN533) {
ret = pn53x_Diagnose06(pnd);
if ((ret == NFC_ETIMEOUT) && (CHIP_DATA(pnd)->type == PN533)) {
if ((ret == NFC_ETIMEOUT) || (ret == NFC_ETGRELEASED)) {
// This happens e.g. when a JCOP31 is removed from PN533
// InRelease takes an abnormal time to reply so let's take care of it now with large timeout:
const uint8_t abtCmd[] = { InRelease, 0x00 };
Expand Down

0 comments on commit fd30e63

Please sign in to comment.