On Mon, Oct 19, 2009 at 11:04:03PM +0200, Patrick Lamaiziere wrote: > 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!
I reverted all my hplip changes and only used this change in libusb20_ugen20.c and my printer is working properly. > Thanks a lot for your support (as usual). And thank you John. A big thanks from me too, Hans. > > > 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; John -- John Hay -- [email protected] / [email protected] _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "[email protected]"
