-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #50, Mark end of valid MsgId subscriptions #51
Fix #50, Mark end of valid MsgId subscriptions #51
Conversation
CCB 2020-07-29, Suggestion: Consolidate unused entries in table. Some potential issues with equality check using |
Switch to use the compare msgid function. |
Updated to use MsgId Equal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with it now using CFE_SB_MsgId_Equal()
....
HOWEVER - one difference is that the previous implementation did allow "holes" in the list i.e. a valid entry, a TO_UNUSED entry, another valid entry, etc. This could have been used for "reserved" entries that could be turned on/off based on whether an app was loaded, without changing the positions of other entries.
This will now stop at the first TO_UNUSED
entry - so holes/reserved slots are no longer possible.
As long as folks are OK with that, I'm fine with it -- I don't see why someone would need to leave gaps/holes, just that it is a change worth noting.
Good note, and no holes approach is fine by me. |
Describe the contribution
Fix #50
Testing performed
Normal run, confirmed no 0x0 duplicate subscription message, confirmed nominal hk telemetry still works with GroundSystem
Expected behavior changes
No more subscriptions on the unused table slots (no MsgId 0 subscriptions).
System(s) tested on
Additional context
None
Third party code
None
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC