summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-11-28 15:39:10 +0100
committerHiFiPhile <[email protected]>2026-01-06 19:49:28 +0100
commit5b49139e779516a66616054398f9738bccaf981b (patch)
treedc9adf32a6343e288b11894fad5977c6edbbe0ae /src/host
parent3302c07d129e8a6c2631a9b15d5a3549b455a3ea (diff)
catch deinit error
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index a725b7c8b..da6afdddb 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -538,7 +538,7 @@ bool tuh_deinit(uint8_t rhport) {
// deinit host controller
hcd_int_disable(rhport);
- hcd_deinit(rhport);
+ TU_ASSERT(hcd_deinit(rhport));
_usbh_data.controller_id = TUSB_INDEX_INVALID_8;
// remove all devices on this rhport (hub_addr = 0, hub_port = 0)