diff options
| author | Zixun LI <[email protected]> | 2026-09-01 10:42:39 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-09-01 10:42:39 +0200 |
| commit | f4697a0626ffa81617c457c93b64e3c3816c1af0 (patch) | |
| tree | 26d10300ee05c8887ad372038a5b1ed4384a262f /src/host | |
| parent | c588e2e8af5ca66e4602784e309e06d356addf09 (diff) | |
| parent | bc359e55b8d3fb5fc5b9e026d5c21b52d554fdd2 (diff) | |
Merge pull request #3828 from dxbjavid/ep2drv-endpoint-bound
bound endpoint number in tu_bind_driver_to_ep_itf
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 44819b016..79f566d16 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -2149,7 +2149,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_ASSERT(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 |
