Skip to content

Commit 9e99269

Browse files
authored
Merge pull request hathach#1287 from alisitsyn/bugfix/fix_idfgh6508
fix idfgh-6508: return type in tu_fifo_peek_n()
2 parents 0b6b4f2 + af9a3f6 commit 9e99269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/tusb_fifo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ bool tu_fifo_peek(tu_fifo_t* f, void * p_buffer)
716716
uint16_t tu_fifo_peek_n(tu_fifo_t* f, void * p_buffer, uint16_t n)
717717
{
718718
_ff_lock(f->mutex_rd);
719-
bool ret = _tu_fifo_peek_n(f, p_buffer, n, f->wr_idx, f->rd_idx, TU_FIFO_COPY_INC);
719+
uint16_t ret = _tu_fifo_peek_n(f, p_buffer, n, f->wr_idx, f->rd_idx, TU_FIFO_COPY_INC);
720720
_ff_unlock(f->mutex_rd);
721721
return ret;
722722
}

0 commit comments

Comments
 (0)