summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/host/usbh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index c38afa3be..712f10f0d 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -566,6 +566,7 @@ void tuh_task_ext(uint32_t timeout_ms, bool in_isr) {
if ((event.rhport == _dev0.rhport) && (event.connection.hub_addr == _dev0.hub_addr) &&
(event.connection.hub_port == _dev0.hub_port)) {
_dev0.enumerating = 0;
+ hcd_device_close(_dev0.rhport, _dev0.hub_addr);
if (_ctrl_xfer.daddr == 0) {
_set_control_xfer_stage(CONTROL_STAGE_IDLE);
}