I’m still newbie with FreeRTOS, so I hope my questions are not (much) stupid…
How can I empty a queue ?
Sometimes I have the need to just ignore every data which could be in a queue until that moment (think about a keyboard buffer, for example)
Currently I do a simple loop of xQueueReceive until it gets data (and ignore it), but I guess I could do something more efficient…
Thanks in advance,
A. de Manzano