diff --git a/components/drivers/usb/usbdevice/class/hid.c b/components/drivers/usb/usbdevice/class/hid.c index a9b2e62d709a140df3abd28bbad1b2a295ce12d3..5df63daddfa547cad8ff84e6f87e397d3213d344 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: