bool nrf_atfifo_item_free(nrf_atfifo_t * const p_fifo, nrf_atfifo_item_get_t * p_context) { if ((p_context->last_head.pos.wr) == (p_context->last_head.pos.rd)) { nrf_atfifo_rspace_close(p_fifo); return true; } return false; }
bool nrf_atfifo_item_free(nrf_atfifo_t * const p_fifo, nrf_atfifo_item_get_t * p_context) { if ((p_context->last_head.pos.wr) == (p_context->last_head.pos.rd)) { NRF_LOG_INST_DEBUG(p_fifo->p_log, "Free (uninterrupted)"); nrf_atfifo_rspace_close(p_fifo); return true; } NRF_LOG_INST_DEBUG(p_fifo->p_log, "Free (interrupted)"); return false; }