Date: Mon, 19 Oct 2009 23:04:03 +0200 From: Patrick Lamaiziere <patfbsd@davenulle.org> To: freebsd-usb@freebsd.org Subject: Re: [8.0] hplip3/ugen printer problem Message-ID: <20091019230403.305e5db7@baby-jane.lamaiziere.net> In-Reply-To: <200910192203.35021.hselasky@c2i.net> References: <20091018153910.375f8013@baby-jane.lamaiziere.net> <200910192135.09875.hselasky@c2i.net> <20091019194356.GA4815@zibbi.meraka.csir.co.za> <200910192203.35021.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Le Mon, 19 Oct 2009 22:03:34 +0200, Hans Petter Selasky <hselasky@c2i.net> a =E9crit : Hello, > octave> mod(72*3600*1000,65536) > ans =3D 5120 //ms >=20 > uint16_t timeout; /* in milliseconds */ >=20 > 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=3D169605 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 |=3D USB_FS_FLAG_CLEAR_STALL; } - fsep->timeout =3D xfer->timeout; + if (xfer->timeout > 65535) + fsep->timeout =3D 65535; + else + fsep->timeout =3D xfer->timeout; temp.ep_index =3D xfer->trIndex;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091019230403.305e5db7>