QueueMapManager bugfix #444

Merged
mohr merged 7 commits from mueller/queuemapmanager-bugfix into development 2021-07-19 15:04:10 +02:00
Owner

This bug slipped the SOURCE tests and the internal unit tests. But surfaced on the STM32 FSFW example. The post-increment operator was used by accident instead of the pre-increment operator which caused the first MessageQueue ID assigned by the QueueMapManager to be 0. This is the current value for NO_QUEUE.

I suspect that the first queue created that way was not used during the SOURCE tests or in the internal unit tests in a way that would have caught this bug.

Solution is to start at 1 now, clarify via comment, and continue using the post-increment operator.

Furthermore, the NO_QUEUE value is skipped now

This bug slipped the SOURCE tests and the internal unit tests. But surfaced on the STM32 FSFW example. The post-increment operator was used by accident instead of the pre-increment operator which caused the first MessageQueue ID assigned by the QueueMapManager to be 0. This is the current value for `NO_QUEUE`. I suspect that the first queue created that way was not used during the SOURCE tests or in the internal unit tests in a way that would have caught this bug. Solution is to start at 1 now, clarify via comment, and continue using the post-increment operator. Furthermore, the NO_QUEUE value is skipped now
muellerr added the
bug
label 2021-07-14 10:31:10 +02:00
muellerr added 1 commit 2021-07-14 10:31:11 +02:00
muellerr added 1 commit 2021-07-14 10:34:09 +02:00
muellerr added 1 commit 2021-07-14 10:34:47 +02:00
muellerr added 1 commit 2021-07-14 10:35:47 +02:00
muellerr added a new dependency 2021-07-14 11:23:55 +02:00
muellerr added this to the v2.0.0 milestone 2021-07-14 11:24:06 +02:00
muellerr added 1 commit 2021-07-19 14:40:38 +02:00
muellerr added 1 commit 2021-07-19 14:47:42 +02:00
muellerr added 1 commit 2021-07-19 14:57:18 +02:00
gaisser approved these changes 2021-07-19 14:58:31 +02:00
mohr approved these changes 2021-07-19 14:59:10 +02:00
mohr was assigned by gaisser 2021-07-19 15:03:52 +02:00
mohr merged commit ac146339a2 into development 2021-07-19 15:04:10 +02:00
Sign in to join this conversation.
No description provided.