mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 01:53:48 +00:00
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)
This commit is contained in:
@@ -3030,8 +3030,8 @@ pn53x_data_new(struct nfc_device *pnd, const struct pn53x_io *io)
|
|||||||
CHIP_DATA(pnd)->wb_trigged = false;
|
CHIP_DATA(pnd)->wb_trigged = false;
|
||||||
memset(CHIP_DATA(pnd)->wb_mask, 0x00, PN53X_CACHE_REGISTER_SIZE);
|
memset(CHIP_DATA(pnd)->wb_mask, 0x00, PN53X_CACHE_REGISTER_SIZE);
|
||||||
|
|
||||||
// Set default command timeout (250 ms)
|
// Set default command timeout (350 ms)
|
||||||
CHIP_DATA(pnd)->timeout_command = 250;
|
CHIP_DATA(pnd)->timeout_command = 350;
|
||||||
|
|
||||||
// Set default ATR timeout (103 ms)
|
// Set default ATR timeout (103 ms)
|
||||||
CHIP_DATA(pnd)->timeout_atr = 103;
|
CHIP_DATA(pnd)->timeout_atr = 103;
|
||||||
|
|||||||
Reference in New Issue
Block a user