Skip to content

Commit 0f57faa

Browse files
authored
Merge pull request #3484 from qz721/master
修复USB不能正常识别composite设备的bug
2 parents 0930683 + a49ddae commit 0f57faa

File tree

1 file changed

+0
-3
lines changed
  • components/drivers/usb/usbdevice/class

1 file changed

+0
-3
lines changed

components/drivers/usb/usbdevice/class/hid.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,6 @@ static rt_err_t _interface_handler(ufunction_t func, ureq_t setup)
458458

459459
struct hid_s *data = (struct hid_s *) func->user_data;
460460

461-
if(setup->wIndex != 0)
462-
return -RT_EIO;
463-
464461
switch (setup->bRequest)
465462
{
466463
case USB_REQ_GET_DESCRIPTOR:

0 commit comments

Comments
 (0)