summaryrefslogtreecommitdiff
path: root/src/host/usbh.c
diff options
context:
space:
mode:
authorJavid Khan <[email protected]>2026-08-17 20:56:27 +0530
committerJavid Khan <[email protected]>2026-08-17 21:00:57 +0530
commit53567226fce0e7be7e7b5e7a019d0f4d14064c33 (patch)
tree4d768488c08055a801bb3f604ac75e85779b1ad6 /src/host/usbh.c
parent2465ea8f435114af3b3c935cc4fbed423d9eac69 (diff)
bound endpoint number in tu_bind_driver_to_ep_itf
Diffstat (limited to 'src/host/usbh.c')
-rw-r--r--src/host/usbh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index e307bb5e5..cb4977dd2 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -2160,7 +2160,8 @@ static bool enum_parse_configuration_desc(uint8_t dev_addr, tusb_desc_configurat
TU_LOG_USBH(" %s opened\r\n", driver->name);
// bind found driver to all interfaces and endpoint within drv_len
- tu_bind_driver_to_ep_itf(drv_id, dev->ep2drv, dev->itf2drv, CFG_TUH_INTERFACE_MAX, p_desc, drv_len);
+ tu_bind_driver_to_ep_itf(drv_id, dev->ep2drv, dev->itf2drv, CFG_TUH_INTERFACE_MAX, CFG_TUH_ENDPOINT_MAX,
+ p_desc, drv_len);
p_desc += drv_len; // next Interface
break; // exit driver find loop