diff options
| author | hathach <[email protected]> | 2022-03-16 15:12:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-03-16 18:44:41 +0700 |
| commit | 98d4ed05845e3a2efb32b0817d635457698b8cc9 (patch) | |
| tree | fe2725f5d0e173e82504f5c052c8ebfaf149a3bd /src/host | |
| parent | fd2ea2605e67673d4264b56649612b34fa93807d (diff) | |
update hid host to use new control xfer for set config
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 418642891..83bca2205 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -1297,12 +1297,10 @@ static bool enum_new_device(hcd_event_t* event) _dev0.speed = hcd_port_speed_get(_dev0.rhport ); TU_LOG2("%s Speed\r\n", tu_str_speed[_dev0.speed]); - //enum_request_addr0_device_desc(); - tuh_control_xfer_t const xfer = - { - .complete_cb = process_enumeration, - .user_arg = ENUM_ADDR0_DEVICE_DESC - }; + // start the enumeration process + tuh_control_xfer_t xfer; + xfer.user_arg = ENUM_ADDR0_DEVICE_DESC; + process_enumeration(0, &xfer, XFER_RESULT_SUCCESS); } |
