xQueueOverwrite() when queue has more than 1 item

unknowcoder wrote on Thursday, October 18, 2018:

I need a method to overwrite the oldest value in the queue. I was briefly looking at the kernel code and it looks the xQueueOverwrite() will do just this?

Can you let me know if this is safe?

rtel wrote on Saturday, October 20, 2018:

I think xQueueOverwrite() is expected to be used with queues that only have one space, so the queue is used as what some RTOSes call a mailbox - it does not sound like that is the case in your application.