uint16_t i = (p_queue->write_idx)++ & (capacity - 1); => uint16_t i = (p_queue->write_idx)++ % capacity ; #3 · open · 0 comments