Skip to content

Commit dd70c7b

Browse files
committed
[USB] Improve documentation for wRequestAndType=0xF8C0 case
Document that bmRequestType=0xC0 for GET_MS_DESCRIPTOR based on https://learn.microsoft.com/en-us/windows-hardware/drivers/network/mb-interface-model-supplement
1 parent 7d7fb67 commit dd70c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

teensy4/usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ static void endpoint0_setup(uint64_t setupdata)
531531
endpoint0_receive(NULL, 0, 0);
532532
return;
533533
#ifdef EXPERIMENTAL_INTERFACE
534-
case 0xF8C0: // GET_MS_DESCRIPTOR (bRequest=0xF8 because microsoft_os_string_desc)
534+
case 0xF8C0: // GET_MS_DESCRIPTOR (bmRequestType=0xC0, bRequest=0xF8 because microsoft_os_string_desc)
535535
if ((setup.wIndex & 0xFF00) != 0) break; // 1=Genre, 4=Compat ID, 5=Properties
536536
setup.wIndex |= 0xEE00; // alter wIndex and treat as normal USB descriptor
537537
__attribute__((fallthrough));

0 commit comments

Comments
 (0)