in ulpt_reset() req.bmRequestType was unitialized, fix it.
This commit is contained in:
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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user