diff options
| author | Javid Khan <[email protected]> | 2026-08-17 20:56:27 +0530 |
|---|---|---|
| committer | Javid Khan <[email protected]> | 2026-08-17 21:00:57 +0530 |
| commit | 53567226fce0e7be7e7b5e7a019d0f4d14064c33 (patch) | |
| tree | 4d768488c08055a801bb3f604ac75e85779b1ad6 /src/device | |
| parent | 2465ea8f435114af3b3c935cc4fbed423d9eac69 (diff) | |
bound endpoint number in tu_bind_driver_to_ep_itf
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index f5c3046d6..5b20d0870 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -1281,8 +1281,8 @@ static bool process_set_config(uint8_t rhport, uint8_t cfg_num) { TU_LOG_USBD(" %s opened\r\n", driver->name); // bind found driver to all interfaces and endpoint within drv_len - TU_ASSERT(tu_bind_driver_to_ep_itf(drv_id, _usbd_dev.ep2drv, _usbd_dev.itf2drv, CFG_TUD_INTERFACE_MAX, p_desc, - drv_len)); + TU_ASSERT(tu_bind_driver_to_ep_itf(drv_id, _usbd_dev.ep2drv, _usbd_dev.itf2drv, CFG_TUD_INTERFACE_MAX, + CFG_TUD_ENDPPOINT_MAX, p_desc, drv_len)); p_desc += drv_len; // next Interface break; // exit driver find loop |
