diff options
| author | HiFiPhile <[email protected]> | 2026-02-11 22:24:34 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-02-11 22:24:34 +0100 |
| commit | 5efa72cd57325615efae6a26ff8c9fe8a9c7b3b5 (patch) | |
| tree | 3fd6df986f1acb9feac2f3e60ab727365d74dbe0 /src/class/cdc | |
| parent | 135a130ba51d2e41b30f13fbd998f1db32a47470 (diff) | |
fix ep size and midi buffer
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/class/cdc')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index 8b5667aac..57d497950 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -735,7 +735,7 @@ static bool open_ep_stream_pair(cdch_interface_t *p_cdc, tusb_desc_endpoint_t co TU_ASSERT(tuh_edpt_open(p_cdc->daddr, desc_ep)); const uint8_t ep_dir = tu_edpt_dir(desc_ep->bEndpointAddress); tu_edpt_stream_t *stream = (ep_dir == TUSB_DIR_IN) ? &p_cdc->stream.rx : &p_cdc->stream.tx; - tu_edpt_stream_open(stream, p_cdc->daddr, desc_ep, desc_ep->wMaxPacketSize); + tu_edpt_stream_open(stream, p_cdc->daddr, desc_ep, tu_edpt_packet_size(desc_ep)); tu_edpt_stream_clear(stream); desc_ep = (const tusb_desc_endpoint_t *)tu_desc_next(desc_ep); |
