diff options
| author | hathach <[email protected]> | 2013-09-30 16:40:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-09-30 16:40:02 +0700 |
| commit | 9ecaec67b3a7ed9f6565840941c4b4cdb599fdba (patch) | |
| tree | 561c2f1b4e9b1c1a9b46a1a15393057dd54415e1 | |
| parent | 5fb22e3f34db0d9e91df8ca306cc97518bb99792 (diff) | |
refractor hub
| -rw-r--r-- | tinyusb/host/hub.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tinyusb/host/hub.c b/tinyusb/host/hub.c index 672ac4c10..9235293cd 100644 --- a/tinyusb/host/hub.c +++ b/tinyusb/host/hub.c @@ -158,12 +158,8 @@ tusb_error_t hub_enumerate_subtask(void) usbh_devices[0].speed = (p_port_status->status_current.high_speed_device_attached) ? TUSB_SPEED_HIGH : (p_port_status->status_current.low_speed_device_attached ) ? TUSB_SPEED_LOW : TUSB_SPEED_FULL; - OSAL_SUBTASK_INVOKED_AND_WAIT( - usbh_control_xfer_subtask( usbh_devices[0].hub_addr, bm_request_type(TUSB_DIR_HOST_TO_DEV, TUSB_REQUEST_TYPE_CLASS, TUSB_REQUEST_RECIPIENT_OTHER), - HUB_REQUEST_CLEAR_FEATURE, HUB_FEATURE_PORT_RESET_CHANGE, usbh_devices[0].hub_port, - 0, NULL ), - error - ); + // Acknowledge Port Reset Change + OSAL_SUBTASK_INVOKED_AND_WAIT( hub_port_clear_feature_subtask(HUB_FEATURE_PORT_RESET_CHANGE), error ); SUBTASK_ASSERT_STATUS( error ); OSAL_SUBTASK_END |
