Closed schilkp closed 3 months ago
Describe the issue
The documentation for xQueueOverwrite states:
xQueueOverwrite
xQueueOverwrite() is intended for use with queues that have a length of one, meaning the queue is either empty or full.
xQueueOverwrite calls xQueueGenericSend:
xQueueGenericSend
#define xQueueOverwrite( xQueue, pvItemToQueue ) \ xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), 0, queueOVERWRITE )
xQueueGenericSend features the following assertion:
configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
This means that either:
Reference https://www.freertos.org/xQueueOverwrite.html
Browser
Thanks!
Hi @schilkp Thank you for reporting the issue. We will fix the documentation and update.
Hi @schilkp It has been updated in the website. Closing the issue.
Describe the issue
The documentation for
xQueueOverwrite
states:xQueueOverwrite
callsxQueueGenericSend
:xQueueGenericSend
features the following assertion:This means that either:
xQueueOverwrite
is not just intended for queues of length one, but requires queues of length one.xQueueGenericSend
is overly conservative.Reference https://www.freertos.org/xQueueOverwrite.html
Browser
Thanks!