change usbh_control_xfer_subtask to use flat API instead of passing tusb_control_request_t struct
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user