diff options
| author | Ha Thach <[email protected]> | 2022-01-19 17:50:33 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-19 17:50:33 +0700 |
| commit | 9e99269875062df118c374dc43859fb625260c8f (patch) | |
| tree | 28ac378263c87f9989202b75877eb7fab7300a76 /src | |
| parent | 0b6b4f24412e9d926ed4cd08c6ab5a49dfb9696b (diff) | |
| parent | af9a3f646cecd8895f488a8bc3b3c39838b55296 (diff) | |
Merge pull request #1287 from alisitsyn/bugfix/fix_idfgh6508
fix idfgh-6508: return type in tu_fifo_peek_n()
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/tusb_fifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tusb_fifo.c b/src/common/tusb_fifo.c index 0d35405db..183c9c6fc 100644 --- a/src/common/tusb_fifo.c +++ b/src/common/tusb_fifo.c @@ -716,7 +716,7 @@ bool tu_fifo_peek(tu_fifo_t* f, void * p_buffer) uint16_t tu_fifo_peek_n(tu_fifo_t* f, void * p_buffer, uint16_t n) { _ff_lock(f->mutex_rd); - bool ret = _tu_fifo_peek_n(f, p_buffer, n, f->wr_idx, f->rd_idx, TU_FIFO_COPY_INC); + uint16_t ret = _tu_fifo_peek_n(f, p_buffer, n, f->wr_idx, f->rd_idx, TU_FIFO_COPY_INC); _ff_unlock(f->mutex_rd); return ret; } |
