修复USB不能正常识别composite设备的bug

This commit is contained in:
qz721 2020-03-26 16:24:10 +08:00 committed by GitHub
parent fc5cfe0a5e
commit a49ddaef96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -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; struct hid_s *data = (struct hid_s *) func->user_data;
if(setup->wIndex != 0)
return -RT_EIO;
switch (setup->bRequest) switch (setup->bRequest)
{ {
case USB_REQ_GET_DESCRIPTOR: case USB_REQ_GET_DESCRIPTOR: