MessageQueueId_t NO_QUEUE = 0 #94

Closed
opened 2020-06-01 11:27:20 +02:00 by muellerr · 2 comments
Owner

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).

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).
muellerr added the
question
label 2020-06-01 11:27:20 +02:00
Author
Owner

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.

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.
muellerr added the
bug
label 2020-06-10 18:37:52 +02:00
Owner

This will be fixed by #205

This will be fixed by #205
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fsfw/fsfw#94
No description provided.