- Timestamp:
- 08/18/09 08:21:19 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
NEWS (modified) (1 diff)
-
src/ifd/sys-bsd.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEWS
r1161 r1164 1 1 NEWS for OpenCT -- History of user visible changes 2 2 3 New in 0.6.17, 2009-07-29; Andreas Jellinghaus 3 New in 0.6.18; 4 * USB code for BSD fixed by Emmanuel Dreyfus 5 6 New in 0.6.17; 2009-07-29; Andreas Jellinghaus 4 7 * add support for Rutoken ECP (ccid driver) 5 8 * small bugfixes 6 9 7 New in 0.6.16 ,2009-05-04; Andreas Jellinghaus10 New in 0.6.16; 2009-05-04; Andreas Jellinghaus 8 11 * For ccid, etoken* drivers remove polling loop, review the force_poll 9 12 configuration option, this reduces power consumption and CPU load. -
trunk/src/ifd/sys-bsd.c
r1138 r1164 318 318 #else 319 319 struct usb_ctl_request ctrl; 320 int retries; 320 321 321 322 ifd_debug(1, "BSD: ifd_sysdep_usb_control(0x%x)", request); … … 345 346 } 346 347 347 if ((rc = ioctl(dev->fd, USB_DO_REQUEST, &ctrl)) < 0) { 348 retries = 5; 349 while ((rc = ioctl(dev->fd, USB_DO_REQUEST, &ctrl)) < 0 && retries > 0) { 348 350 ifd_debug(1, "USB_DO_REQUEST failed: %d", rc); 349 351 ct_error("usb_do_request failed: %s (%d)", 350 352 strerror(errno), errno); 351 ret urn IFD_ERROR_COMM_ERROR;353 retries--; 352 354 } 353 355
Note: See TracChangeset
for help on using the changeset viewer.
