Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
line 261 ~ 265 in ud_core.c/usbdevice_core.c maybe process the command in setup twice if the request code is the same with USB_REQ_GET_INTERFACE which is 0xA. It will result in unexpected behavior during transfer. The solution is removing line 261 ~ 265.
I ran into this issue with _interface_handler() in hid.c after the get_interface request is received.
the request code is 0xA which the definition is USB_REQ_GET_INTERFACE and USB_HID_REQ_SET_IDLE.
This issue exists in the implementation of set_interface request also.