diff options
| author | hathach <[email protected]> | 2026-02-06 18:09:53 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-02-06 18:09:53 +0700 |
| commit | cb19d620e8084765dddc2ddb93c00565934c5ac4 (patch) | |
| tree | 89074a01e1030b381d3ccec1ec8ccc2e9053a044 /src/tusb.c | |
| parent | 8ef8ee1946f3c0f600500eb49b2b0c1352f8dcb8 (diff) | |
| parent | be5e23453565d9ccc578f08af52ab86ce4cef0be (diff) | |
Merge branch 'refs/heads/master' into musb_fix
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 bf82cdbe9..6075e9db4 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -392,7 +392,7 @@ uint32_t tu_edpt_stream_write_xfer(tu_edpt_stream_t *s) { // Pull data from FIFO -> EP buf uint16_t count; if (s->ep_buf == NULL) { - count = ff_count; + count = tu_fifo_count(&s->ff); // re-get count since fifo can be changed } else { count = tu_fifo_read_n(&s->ff, s->ep_buf, s->ep_bufsize); } |
