From 98948172b40e831c3235f2677e77d37c1fa26799 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 30 Jan 2013 00:56:47 +0100 Subject: [PATCH] Fixes pn53x_usb timeout while bulk write. Thanks to Tredger for reporting. Fixes issue 223. --- ChangeLog | 3 +++ libnfc/drivers/pn53x_usb.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0c837f1..c5de480 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ Jan TBD, 2013 - 1.7.0-rc3 (release candidate) -------------------------------------------- +Fixes: + - Fix pn53x_usb bulk write timeout + Changes: - nfc_emulate_target() now takes timeout parameter diff --git a/libnfc/drivers/pn53x_usb.c b/libnfc/drivers/pn53x_usb.c index 11f3164..7440c80 100644 --- a/libnfc/drivers/pn53x_usb.c +++ b/libnfc/drivers/pn53x_usb.c @@ -652,7 +652,7 @@ read: int pn53x_usb_ack(nfc_device *pnd) { - return pn53x_usb_bulk_write(DRIVER_DATA(pnd), (uint8_t *) pn53x_ack_frame, sizeof(pn53x_ack_frame), -1); + return pn53x_usb_bulk_write(DRIVER_DATA(pnd), (uint8_t *) pn53x_ack_frame, sizeof(pn53x_ack_frame), 1000); } int