From df14d509d59a49bc6a9af10f974aa4526091f9d5 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Thu, 25 Oct 2018 03:06:53 +0000 Subject: [PATCH] Add missing timeout There are situations where pn533 becomes unresponsive. libnfc has workarounds, but they can only be used if it avoids to get stuck in some USB transfer with no timeout set. This changes fixes such a situation. --- 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