fix build error with ohci

This commit is contained in:
hathach
2018-12-11 16:18:56 +07:00
parent dbc560658a
commit 600fac1845
5 changed files with 103 additions and 181 deletions

View File

@@ -515,7 +515,7 @@ bool enum_task(hcd_event_t* event)
new_dev->speed = dev0->speed;
new_dev->state = TUSB_DEVICE_STATE_ADDRESSED;
usbh_pipe_control_close(0);
usbh_pipe_control_close(0); // hcd_device_remove(rhport, 0); // close device 0
dev0->state = TUSB_DEVICE_STATE_UNPLUG;
// open control pipe for new address