Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[USB] Improve documentation for wRequestAndType=0xF8C0 case #759

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion teensy4/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ static void endpoint0_setup(uint64_t setupdata)
endpoint0_receive(NULL, 0, 0);
return;
#ifdef EXPERIMENTAL_INTERFACE
case 0xF8C0: // GET_MS_DESCRIPTOR (bRequest=0xF8 because microsoft_os_string_desc)
case 0xF8C0: // GET_MS_DESCRIPTOR (bmRequestType=0xC0, bRequest=0xF8 because microsoft_os_string_desc)
if ((setup.wIndex & 0xFF00) != 0) break; // 1=Genre, 4=Compat ID, 5=Properties
setup.wIndex |= 0xEE00; // alter wIndex and treat as normal USB descriptor
__attribute__((fallthrough));
Expand Down