-
Notifications
You must be signed in to change notification settings - Fork 40
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 #28, Opaque CFE_SB_MsgId_t values #29
Fix #28, Opaque CFE_SB_MsgId_t values #29
Conversation
22d7857
to
f2e853f
Compare
Pushed simplified changeset that corresponds with other apps - see description here: nasa/sample_app#54 (comment) |
f2e853f
to
d6b2434
Compare
Related to nasa/cFE#592 |
CCB 20200408 - Split up into parts. |
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.
Marking based on CCB 20200408
Do not assume CFE_SB_MsgId_t is implicitly integral in nature. When an integer value is required for printing or backward compatibility, use the explicit conversion routine to get this.
d6b2434
to
a7a6350
Compare
Updated to minimal change to correlate with CFE. Required to fix errors when building with RTEMS and extended headers. |
CCB 20200506 - APPROVED |
@jphickey can you resolve the conflicts? |
Conflict resolved in 9793ba8 |
Describe the contribution
Apply the
CFE_SB_MsgIdToValue()
andCFE_SB_ValueToMsgId()
routines where compatibility with an integer MsgId is necessary - syslog prints, events, compile-time MID#define
values.Fixes #28
Testing performed
Unit test
Execute CFE and sanity-check normal operation - send commands to app using
cmdUtil
and confirm commands are processed normally.Expected behavior changes
No impact to behavior.
System(s) tested on
Ubuntu 18.04 LTS, 64-bit
Additional context
In future versions of CFE SB the MsgId type might not be a simple integer, so this is one step in the direction of avoiding this assumption in apps.
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.