We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71ed9d1 + 042ebc0 commit 6e891c6Copy full SHA for 6e891c6
1 file changed
src/tusb.c
@@ -392,7 +392,7 @@ uint32_t tu_edpt_stream_write_xfer(tu_edpt_stream_t *s) {
392
// Pull data from FIFO -> EP buf
393
uint16_t count;
394
if (s->ep_buf == NULL) {
395
- count = ff_count;
+ count = tu_fifo_count(&s->ff); // re-get count since fifo can be changed
396
} else {
397
count = tu_fifo_read_n(&s->ff, s->ep_buf, s->ep_bufsize);
398
}
0 commit comments