Skip to content

Commit

Permalink
Document wRequestAndType=0x0680 case
Browse files Browse the repository at this point in the history
This case corresponds bmRequestType=0x80 & bRequest=GET_DESCRIPTOR(0x06) as documented on https://www.beyondlogic.org/usbnutshell/usb6.shtml
  • Loading branch information
forderud committed Oct 2, 2024
1 parent 7d7fb67 commit 8dfaa0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teensy4/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ static void endpoint0_setup(uint64_t setupdata)
setup.wIndex |= 0xEE00; // alter wIndex and treat as normal USB descriptor
__attribute__((fallthrough));
#endif
case 0x0680: // GET_DESCRIPTOR
case 0x0680: // GET_DESCRIPTOR (bmRequestType=0x80, bRequest=0x06)
case 0x0681:
for (list = usb_descriptor_list; list->addr != NULL; list++) {
if (setup.wValue == list->wValue && setup.wIndex == list->wIndex) {
Expand Down

0 comments on commit 8dfaa0a

Please sign in to comment.