mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-03 20:35:34 +08:00
commit
0f57faa591
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user