diff options
| author | Bernard Xiong <[email protected]> | 2020-03-30 21:20:02 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-30 21:20:02 +0800 |
| commit | 0f57faa591b4eb9cf8ec88bb092855369a71d19a (patch) | |
| tree | 971ca9cadfb86598e6e1c7cc3db836fbd81b02e6 /components/drivers/usb | |
| parent | 0930683a3faae2fa91cfea965d5265f2f6df0d29 (diff) | |
| parent | a49ddaef96a26edc0c1afcc5e260effcf709cd31 (diff) | |
Merge pull request #3484 from qz721/master
修复USB不能正常识别composite设备的bug
Diffstat (limited to 'components/drivers/usb')
| -rw-r--r-- | components/drivers/usb/usbdevice/class/hid.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/components/drivers/usb/usbdevice/class/hid.c b/components/drivers/usb/usbdevice/class/hid.c index a9b2e62d70..5df63daddf 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: |
