Add missing timeout

Add a tiemout in pn53x_initiator_select_passive_target()
so that we do not get stuck forever when pn533 misses a toggle
bit change.
This commit is contained in:
Emmanuel Dreyfus 2018-11-12 14:46:31 +00:00
parent 4ae4cc86f8
commit 2418d946a3

View file

@ -1278,7 +1278,7 @@ pn53x_initiator_select_passive_target(struct nfc_device *pnd,
const uint8_t *pbtInitData, const size_t szInitData,
nfc_target *pnt)
{
return pn53x_initiator_select_passive_target_ext(pnd, nm, pbtInitData, szInitData, pnt, 0);
return pn53x_initiator_select_passive_target_ext(pnd, nm, pbtInitData, szInitData, pnt, 300);
}
int