Skip to content
Commit 476a224d authored by Alexander Kaiser's avatar Alexander Kaiser Committed by Fabio Baltieri
Browse files

usb: host: use uint16_t for Language ID



usbh_req_desc() truncates the descriptor id. This problem is most
visible with string descriptor requests, as only then can wIndex be
greater than 0xFF. In particular, this affects commonly used language
IDs such as English (United States), which is 0x0409.

Signed-off-by: default avatarAlexander Kaiser <akaiser@urbansky.com>
parent fcb8fa7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment