diff options
| author | hathach <[email protected]> | 2025-11-13 12:02:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-11-13 12:31:27 +0700 |
| commit | 397a3af8afc4bc5460572da4a40629684dfa788c (patch) | |
| tree | 576d3ca7128854d5181b2a1c38660ba1f973ecb7 /src/tusb.c | |
| parent | f11adb02ebc0c594a7114b08585b8af18c3ee6d6 (diff) | |
clear endpoint stream when open for cdc_host and midi_host
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tusb.c b/src/tusb.c index df33f2680..6fb5309ab 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -517,7 +517,7 @@ uint32_t tu_edpt_stream_read_xfer(uint8_t hwid, tu_edpt_stream_t* s) { } uint32_t tu_edpt_stream_read(uint8_t hwid, tu_edpt_stream_t* s, void* buffer, uint32_t bufsize) { - uint32_t num_read = tu_fifo_read_n(&s->ff, buffer, (uint16_t) bufsize); + const uint32_t num_read = tu_fifo_read_n(&s->ff, buffer, (uint16_t)bufsize); tu_edpt_stream_read_xfer(hwid, s); return num_read; } |
