diff options
| author | HiFiPhile <[email protected]> | 2025-04-18 17:47:53 +0200 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-04-22 16:58:13 +0700 |
| commit | 7ba63a63022ed5ed2e92daca1cd011dd55547d39 (patch) | |
| tree | 3c9d5319b42a1f97da126b2ccde8b739c91af631 /src | |
| parent | 3c4e6a779d65ad2d28e0eef0284df88e39bec6bc (diff) | |
Also cleanup unaddressed device.
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/host/usbh.c | 1 |
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); } |
