MessageQueueId_t NO_QUEUE = 0 #94
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The defintion for NO_QUEUE is 0. I' m not sure this is a good idea because the ID is often times created by the OS. Wouldn't it be better to set this to 0xffffffff?
At least a check on the generated queue ID should be performed (MessageQueue ctor) to ensure its always 0 and emmit an error if it is 0 (if 0 isn't the returned value for a failed message queue intiialization of course).
I changed the value, and it broke parts in the code for FreeRTOS.
This is not ideal. Message Queue Ids in the FSFW were initialized with 0 (magic number..) instead of NO_QUEUE. I think all 0 initializations should be replaced by NO_QUEUE.
This will be fixed by #205