Fixes pn53x_usb timeout while bulk write.

Thanks to Tredger for reporting.

Fixes issue 223.
This commit is contained in:
Romuald Conty 2013-01-30 00:56:47 +01:00
parent cd2b03a08a
commit 98948172b4
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,9 @@
Jan TBD, 2013 - 1.7.0-rc3 (release candidate) Jan TBD, 2013 - 1.7.0-rc3 (release candidate)
-------------------------------------------- --------------------------------------------
Fixes:
- Fix pn53x_usb bulk write timeout
Changes: Changes:
- nfc_emulate_target() now takes timeout parameter - nfc_emulate_target() now takes timeout parameter

View file

@ -652,7 +652,7 @@ read:
int int
pn53x_usb_ack(nfc_device *pnd) 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 int