in ulpt_reset() req.bmRequestType was unitialized, fix it.

This commit is contained in:
Alfred Perlstein 2002-02-26 01:19:56 +00:00
parent 648b06a6ed
commit 6f65a2bd46

@ -455,6 +455,7 @@ ulpt_reset(struct ulpt_softc *sc)
* UT_WRITE_CLASS_INTERFACE. Many printers use the old one,
* so we try both.
*/
req.bmRequestType = UT_WRITE_CLASS_OTHER;
if (usbd_do_request(sc->sc_udev, &req, 0)) { /* 1.0 */
req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
(void)usbd_do_request(sc->sc_udev, &req, 0); /* 1.1 */