packet_queue: wrap sequence number in packet_queue_delete()

This commit is contained in:
Thomas Kolb 2024-07-20 01:01:55 +02:00
parent ac0fb54623
commit bfe1cce6e3

View file

@ -65,6 +65,7 @@ void packet_queue_delete(packet_queue_t *q, size_t count)
entry->data_len = 0;
q->read_idx++;
q->read_idx %= PACKET_QUEUE_SIZE;
}
}