LibUSB v1.0: Need at least one frame when doing the dummy open
else clear stall won't work in that case.
This commit is contained in:
parent
877854f667
commit
a7e048a23f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223642
@ -636,7 +636,7 @@ libusb_clear_halt(struct libusb20_device *pdev, uint8_t endpoint)
|
|||||||
return (LIBUSB_ERROR_INVALID_PARAM);
|
return (LIBUSB_ERROR_INVALID_PARAM);
|
||||||
|
|
||||||
CTX_LOCK(dev->ctx);
|
CTX_LOCK(dev->ctx);
|
||||||
err = libusb20_tr_open(xfer, 0, 0, endpoint);
|
err = libusb20_tr_open(xfer, 0, 1, endpoint);
|
||||||
CTX_UNLOCK(dev->ctx);
|
CTX_UNLOCK(dev->ctx);
|
||||||
|
|
||||||
if (err != 0 && err != LIBUSB20_ERROR_BUSY)
|
if (err != 0 && err != LIBUSB20_ERROR_BUSY)
|
||||||
|
Loading…
Reference in New Issue
Block a user