From a49ddaef96a26edc0c1afcc5e260effcf709cd31 Mon Sep 17 00:00:00 2001 From: qz721 <48575453+qz721@users.noreply.github.com> Date: Thu, 26 Mar 2020 16:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DUSB=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E8=AF=86=E5=88=ABcomposite=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/usb/usbdevice/class/hid.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/drivers/usb/usbdevice/class/hid.c b/components/drivers/usb/usbdevice/class/hid.c index aea6d802d1..b54c0bc268 100644 --- a/components/drivers/usb/usbdevice/class/hid.c +++ b/components/drivers/usb/usbdevice/class/hid.c @@ -458,9 +458,6 @@ static rt_err_t _interface_handler(ufunction_t func, ureq_t setup) struct hid_s *data = (struct hid_s *) func->user_data; - if(setup->wIndex != 0) - return -RT_EIO; - switch (setup->bRequest) { case USB_REQ_GET_DESCRIPTOR: -- GitLab