diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2010-04-13 08:40:27 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2010-04-13 08:40:27 +0000 |
commit | 8a8568088f280ed94054abd10f98f89da6b4bf1f (patch) | |
tree | 9cc82a3f95f648797b28db73baf4126e54827824 /firmware/usbstack/usb_core.c | |
parent | d372e3c8e69ff8c3a21a64995f6ad6e5d0f04a51 (diff) |
- 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
Diffstat (limited to 'firmware/usbstack/usb_core.c')
-rw-r--r-- | firmware/usbstack/usb_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index c3435393c4..37dbdb983d 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c @@ -501,8 +501,8 @@ static void allocate_interfaces_and_endpoints(void) static void control_request_handler_drivers(struct usb_ctrlrequest* req) { - int i, interface = req->wIndex; - bool handled=false; + int i, interface = req->wIndex & 0xff; + bool handled = false; for(i = 0; i < USB_NUM_DRIVERS; i++) { if(drivers[i].enabled && |