You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it returned a bool value instead of the data length
Code to reproduce this issue
/******************************************************************************//*! @brief Read n items without removing it from the FIFO This function checks for an overflow and corrects read pointer if required. @param[in] f Pointer to the FIFO buffer to manipulate @param[in] offset Position to read from in the FIFO buffer with respect to read pointer @param[in] p_buffer Pointer to the place holder for data read from the buffer @param[in] n Number of items to peek @returns Number of bytes written to p_buffer*//******************************************************************************/uint16_ttu_fifo_peek_at_n(tu_fifo_t* f, uint16_t offset, void * p_buffer, uint16_t n)
{
_ff_lock(f->mutex_rd);
bool ret = _tu_fifo_peek_at_n(f, offset, p_buffer, n, f->wr_idx, f->rd_idx, TU_FIFO_COPY_INC);
_ff_unlock(f->mutex_rd);
return ret;
}
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
function "tu_fifo_peek_at_n" return vlaue incompatible
function "tu_fifo_peek_at_n" return vlaue incompatible (IDFGH-6508)
Dec 29, 2021
Environment
v4.4-beta1
Problem Description
it returned a bool value instead of the data length
Code to reproduce this issue
The text was updated successfully, but these errors were encountered: