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 #37, Opaque CFE_SB_MsgId_t values #38

Merged
merged 1 commit into from
May 8, 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 #37

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
@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 Pull Request has work pending label Apr 28, 2020
@jphickey
Copy link
Contributor Author

jphickey commented May 5, 2020

Reviving this -- necessary to fix compile errors with RTEMS and extended headers enabled.

There was nothing to update in this app (SCH_LAB). Same commit as previous review.

@jphickey jphickey added CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) and removed CCB:Ignore Pull Request has work pending 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
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 7, 2020

Correction - this is almost the same, but the MID constants do not have a _VALUE suffix since the constants did not change names.

@astrogeco astrogeco changed the base branch from master to integration-candidate May 8, 2020 19:29
@astrogeco astrogeco merged commit c120d8a into nasa:integration-candidate May 8, 2020
@skliper skliper added this to the 2.4.0 milestone Jun 1, 2020
@jphickey jphickey deleted the fix-37-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
None yet
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