소스 검색

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

qz721 5 년 전
부모
커밋
a49ddaef96
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      components/drivers/usb/usbdevice/class/hid.c

+ 0 - 3
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: