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 #1449, Factor out common code for bitmask check #2248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thnkslprpt
Copy link
Contributor

@thnkslprpt thnkslprpt commented Feb 21, 2023

Checklist

Describe the contribution

Could also add another (almost identical) helper to factor out the bitmask check from CFE_EVS_EnableAppEventTypeCmd() and CFE_EVS_DisableAppEventTypeCmd(). They weren't included here as they use a different structure to hold the bitmask (they use CFE_EVS_AppNameBitMaskCmd_Payload_t)

Testing performed
GitHub CI actions (incl. Build + Run, Unit Tests etc.) all passing successfully.

Expected behavior changes
No change to behavior or return values.

Contributor Info
Avi Weiss @thnkslprpt

* See description in header file for argument/return detail
*
*-----------------------------------------------------------------*/
CFE_Status_t CFE_EVS_CheckBitmaskInRange(const CFE_EVS_BitMaskCmd_Payload_t *CmdPtr, uint16 CommandCode)

Check notice

Code scanning / CodeQL-coding-standard

Long function without assertion Note

All functions of more than 10 lines should have at least one assertion.
@thnkslprpt thnkslprpt force-pushed the fix-1449-factor-out-bitmask-check branch from d7cace1 to 5899c8f Compare April 19, 2024 21:23
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.

Refactor enable and disable command handlers to use common code w/ boolean
1 participant