Skip to content

Commit af9a3f6

Browse files
emailemail
authored andcommitted
fix idfgh-6508: return type in tu_fifo_peek_n()
espressif/esp-idf#8161
1 parent 0b6b4f2 commit af9a3f6

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)