From 62c4ffd0b72553385d9b7afc225f45ef3996ddb7 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 30 May 2012 23:02:56 +0000 Subject: [PATCH] Raises up default timeout from 250 to 350ms PN53x sometimes needs more time to compute usual command (ie. with Diagnose/Card Presence when card become unreachable) --- libnfc/chips/pn53x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index b193bce..53fd8ef 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -3030,8 +3030,8 @@ pn53x_data_new(struct nfc_device *pnd, const struct pn53x_io *io) CHIP_DATA(pnd)->wb_trigged = false; memset(CHIP_DATA(pnd)->wb_mask, 0x00, PN53X_CACHE_REGISTER_SIZE); - // Set default command timeout (250 ms) - CHIP_DATA(pnd)->timeout_command = 250; + // Set default command timeout (350 ms) + CHIP_DATA(pnd)->timeout_command = 350; // Set default ATR timeout (103 ms) CHIP_DATA(pnd)->timeout_atr = 103;