forked from len0rd/rockbox
- Forget a cosmetic change.
- Interface number is in lower half of wIndex for interface control requests. Upper half is reserved and used in other protocols. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25618 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d372e3c8e6
commit
8a8568088f
1 changed files with 2 additions and 2 deletions
|
@ -501,7 +501,7 @@ static void allocate_interfaces_and_endpoints(void)
|
||||||
|
|
||||||
static void control_request_handler_drivers(struct usb_ctrlrequest* req)
|
static void control_request_handler_drivers(struct usb_ctrlrequest* req)
|
||||||
{
|
{
|
||||||
int i, interface = req->wIndex;
|
int i, interface = req->wIndex & 0xff;
|
||||||
bool handled = false;
|
bool handled = false;
|
||||||
|
|
||||||
for(i = 0; i < USB_NUM_DRIVERS; i++) {
|
for(i = 0; i < USB_NUM_DRIVERS; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue