diff options
| author | hathach <[email protected]> | 2013-03-29 23:37:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-29 23:37:59 +0700 |
| commit | fcb8e295ecf5b50ffe2ec98d648d461bc215e2af (patch) | |
| tree | 0e465cd99b459493fa8defeef62a0849a9885221 /tinyusb/host/usbh.c | |
| parent | e658e67ebefb94ee001dc491ea01c607300490b7 (diff) | |
clean up, update tests for hcd_port_reset after 8 byte descriptor & set configure before open class driver
Diffstat (limited to 'tinyusb/host/usbh.c')
| -rw-r--r-- | tinyusb/host/usbh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 3cf80f6c5..eada2d6cb 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -314,10 +314,9 @@ OSAL_TASK_DECLARE(usbh_enumeration_task) usbh_devices[new_addr].hub_addr = usbh_devices[0].hub_addr; usbh_devices[new_addr].hub_port = usbh_devices[0].hub_port; usbh_devices[new_addr].speed = usbh_devices[0].speed; - usbh_devices[new_addr].state = TUSB_DEVICE_STATE_ADDRESSED; + usbh_devices[new_addr].state = TUSB_DEVICE_STATE_ADDRESSED; usbh_pipe_control_close(0); - usbh_devices[0].state = TUSB_DEVICE_STATE_UNPLUG; // open control pipe for new address TASK_ASSERT_STATUS ( usbh_pipe_control_open(new_addr, ((tusb_descriptor_device_t*) enum_data_buffer)->bMaxPacketSize0 ) ); |
