未验证 提交 a49ddaef 编写于 作者: Q qz721 提交者: GitHub

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

上级 fc5cfe0a
...@@ -458,9 +458,6 @@ static rt_err_t _interface_handler(ufunction_t func, ureq_t setup) ...@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册