Le Mon, 19 Oct 2009 22:03:34 +0200, Hans Petter Selasky <[email protected]> a écrit :
Hello, > octave> mod(72*3600*1000,65536) > ans = 5120 //ms > > uint16_t timeout; /* in milliseconds */ > > I've made the following patch to LibUSB in FreeBSD, which might help. Oh yes it helps a lot. It looks ok now. That's cool! Thanks a lot for your support (as usual). And thank you John. > http://p4web.freebsd.org/chv.cgi?CH=169605 This link does not work : --- libusb20_ugen20.c.org 2009-10-19 22:13:57.848638858 +0200 +++ libusb20_ugen20.c 2009-10-19 22:21:14.843694374 +0200 @@ -800,7 +800,10 @@ if (xfer->flags & LIBUSB20_TRANSFER_DO_CLEAR_STALL) { fsep->flags |= USB_FS_FLAG_CLEAR_STALL; } - fsep->timeout = xfer->timeout; + if (xfer->timeout > 65535) + fsep->timeout = 65535; + else + fsep->timeout = xfer->timeout; temp.ep_index = xfer->trIndex; _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "[email protected]"
