nfc_initiator_target_is_present(): Fixes issue #267, second attempt
Philippe Teuwen
10 years ago
1790 | 1790 | log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%s", "target_is_present(): Ping -4A"); |
1791 | 1791 | if (CHIP_DATA(pnd)->type == PN533) { |
1792 | 1792 | ret = pn53x_Diagnose06(pnd); |
1793 | if ((ret == NFC_ETIMEOUT) && (CHIP_DATA(pnd)->type == PN533)) { | |
1793 | if ((ret == NFC_ETIMEOUT) || (ret == NFC_ETGRELEASED)) { | |
1794 | 1794 | // This happens e.g. when a JCOP31 is removed from PN533 |
1795 | 1795 | // InRelease takes an abnormal time to reply so let's take care of it now with large timeout: |
1796 | 1796 | const uint8_t abtCmd[] = { InRelease, 0x00 }; |