summaryrefslogtreecommitdiff
path: root/tests/support/ehci_controller_fake.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-07-05 13:23:42 +0700
committerhathach <[email protected]>2013-07-05 13:23:42 +0700
commit374aea7a11b6b9986318707f5951b9c69ad00239 (patch)
treec162841d6049ec7904b791439a92b923cbc0f734 /tests/support/ehci_controller_fake.c
parentc08c655fd120033f33fc40464018c743c646a512 (diff)
change usbh_control_xfer_subtask to use flat API instead of passing tusb_control_request_t struct
Diffstat (limited to 'tests/support/ehci_controller_fake.c')
-rw-r--r--tests/support/ehci_controller_fake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/support/ehci_controller_fake.c b/tests/support/ehci_controller_fake.c
index 36944c8fe..ff5bb084b 100644
--- a/tests/support/ehci_controller_fake.c
+++ b/tests/support/ehci_controller_fake.c
@@ -73,7 +73,7 @@ void ehci_controller_control_xfer_proceed(uint8_t dev_addr, uint8_t p_data[])
tusb_control_request_t const *p_request = (tusb_control_request_t *) p_qtd_setup->buffer[0];
- if (p_request->wLength > 0 && p_request->bmRequestType.direction == TUSB_DIR_DEV_TO_HOST)
+ if (p_request->wLength > 0 && p_request->bmRequestType_bit.direction == TUSB_DIR_DEV_TO_HOST)
{
memcpy(p_qtd_data, p_data, p_request->wLength);
}