From a7e048a23f8c712b226b3c11ef0511f328ec358d Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Tue, 28 Jun 2011 14:07:28 +0000 Subject: [PATCH] LibUSB v1.0: Need at least one frame when doing the dummy open else clear stall won't work in that case. --- lib/libusb/libusb10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c index fa50ea784dfb..737e6109aeee 100644 --- a/lib/libusb/libusb10.c +++ b/lib/libusb/libusb10.c @@ -636,7 +636,7 @@ libusb_clear_halt(struct libusb20_device *pdev, uint8_t endpoint) return (LIBUSB_ERROR_INVALID_PARAM); CTX_LOCK(dev->ctx); - err = libusb20_tr_open(xfer, 0, 0, endpoint); + err = libusb20_tr_open(xfer, 0, 1, endpoint); CTX_UNLOCK(dev->ctx); if (err != 0 && err != LIBUSB20_ERROR_BUSY)