Skip to content
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

Merged
merged 1 commit into from
May 11, 2020

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Apr 6, 2020

Describe the contribution
Apply the CFE_SB_MsgIdToValue() and CFE_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.

@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Apr 6, 2020
@jphickey
Copy link
Contributor Author

jphickey commented Apr 8, 2020

Pushed simplified changeset that corresponds with other apps - see description here: nasa/sample_app#54 (comment)

@astrogeco
Copy link
Contributor

Related to nasa/cFE#592

@astrogeco
Copy link
Contributor

CCB 20200408 - Split up into parts.

@astrogeco astrogeco added CCB - 20200408 and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Apr 8, 2020
Copy link
Contributor

@astrogeco astrogeco left a 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

@skliper skliper added the CCB:Ignore PR or Issue is NOT ready for discussion. Has open actions. Will be re-examined at by next CCB. label Apr 28, 2020
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.
@jphickey
Copy link
Contributor Author

jphickey commented May 5, 2020

Updated to minimal change to correlate with CFE. Required to fix errors when building with RTEMS and extended headers.

@jphickey jphickey added CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) and removed CCB:Ignore PR or Issue is NOT ready for discussion. Has open actions. Will be re-examined at by next CCB. labels May 5, 2020
@astrogeco
Copy link
Contributor

CCB 20200506 - APPROVED

@astrogeco astrogeco added CCB-20200506 and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels May 6, 2020
@astrogeco astrogeco changed the base branch from master to integration-candidate May 8, 2020 19:30
@astrogeco astrogeco added CCB:Approved Indicates approval by CCB IC-20200429 conflicts There are conflicts preventing this PR from being merged labels May 8, 2020
@astrogeco
Copy link
Contributor

@jphickey can you resolve the conflicts?

@jphickey jphickey merged commit 9793ba8 into nasa:integration-candidate May 11, 2020
@jphickey
Copy link
Contributor Author

Conflict resolved in 9793ba8

@skliper skliper added this to the 2.4.0 milestone Jun 1, 2020
@jphickey jphickey deleted the fix-28-opaque-msgid branch June 8, 2021 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates approval by CCB conflicts There are conflicts preventing this PR from being merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App should treat CFE_SB_MsgId_t values as opaque
3 participants