Skip to content

Fix #204, Check return value of calls to CFE_SB_Subscribe()#205

Open
thnkslprpt wants to merge 1 commit intonasa:mainfrom
thnkslprpt:fix-204-check-return-of-calls-to-cfe-sb-subscribe
Open

Fix #204, Check return value of calls to CFE_SB_Subscribe()#205
thnkslprpt wants to merge 1 commit intonasa:mainfrom
thnkslprpt:fix-204-check-return-of-calls-to-cfe-sb-subscribe

Conversation

@thnkslprpt
Copy link
Contributor

Checklist

Describe the contribution

Testing performed
GitHub CI actions all passing successfully.

Expected behavior changes
Failure of the calls to subscribe to the command and HK MIDs will set the status variable to an error state, and therefore halt further steps in the initialization.

System(s) tested on
Debian 12 using the current main branch of cFS bundle.

Contributor Info
Avi Weiss   @thnkslprpt

@dzbaker dzbaker added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Nov 27, 2024
#define TO_LAB_NOOP_INF_EID 18
#define TO_LAB_TBL_ERR_EID 19
#define TO_LAB_ENCODE_ERR_EID 20
#define TO_LAB_SUBSCRIBE_CMD_ERR_EID 21
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the purpose of adding these two new event IDs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to have unique error EIDs instead of overloading a previous one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calls to CFE_SB_Subscribe() are missing return checks

2 participants