Codebase list libnfc / fd30e63
nfc_initiator_target_is_present(): Fixes issue #267, second attempt Philippe Teuwen 10 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
17901790 log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%s", "target_is_present(): Ping -4A");
17911791 if (CHIP_DATA(pnd)->type == PN533) {
17921792 ret = pn53x_Diagnose06(pnd);
1793 if ((ret == NFC_ETIMEOUT) && (CHIP_DATA(pnd)->type == PN533)) {
1793 if ((ret == NFC_ETIMEOUT) || (ret == NFC_ETGRELEASED)) {
17941794 // This happens e.g. when a JCOP31 is removed from PN533
17951795 // InRelease takes an abnormal time to reply so let's take care of it now with large timeout:
17961796 const uint8_t abtCmd[] = { InRelease, 0x00 };