From 2418d946a31aa518495fa6c0c3929804a870b76b Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Mon, 12 Nov 2018 14:46:31 +0000 Subject: [PATCH] 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. --- libnfc/chips/pn53x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index 0364248..89af830 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -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