use the EP_DIR() macro to go from USB_DIR_* to a 0 or 1 value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23640 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
724e4fe5e4
commit
c12502f249
1 changed files with 2 additions and 2 deletions
|
@ -821,7 +821,7 @@ void usb_core_transfer_complete(int endpoint,int dir,int status,int length)
|
|||
break;
|
||||
|
||||
default:
|
||||
completion_event=&ep_data[endpoint].completion_event[dir!=0];
|
||||
completion_event=&ep_data[endpoint].completion_event[EP_DIR(dir)];
|
||||
|
||||
completion_event->endpoint=endpoint;
|
||||
completion_event->dir=dir;
|
||||
|
@ -838,7 +838,7 @@ void usb_core_transfer_complete(int endpoint,int dir,int status,int length)
|
|||
void usb_core_control_request(struct usb_ctrlrequest* req)
|
||||
{
|
||||
struct usb_transfer_completion_event_data* completion_event =
|
||||
&ep_data[EP_CONTROL].completion_event[1];
|
||||
&ep_data[EP_CONTROL].completion_event[EP_DIR(USB_DIR_IN)];
|
||||
|
||||
completion_event->endpoint=EP_CONTROL;
|
||||
completion_event->dir=0;
|
||||
|
|
Loading…
Reference in a new issue