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

Refactor CFE_TBL_SearchCmdHndlrTbl to unmix error codes with indexes and simplify loop #1519

Open
skliper opened this issue May 13, 2021 · 0 comments · May be fixed by #2332
Open

Refactor CFE_TBL_SearchCmdHndlrTbl to unmix error codes with indexes and simplify loop #1519

skliper opened this issue May 13, 2021 · 0 comments · May be fixed by #2332

Comments

@skliper
Copy link
Contributor

skliper commented May 13, 2021

Is your feature request related to a problem? Please describe.
Mixes error codes (at least by name) with an index:

int16 TblIndx = CFE_TBL_BAD_CMD_CODE;

also the do/while loop is unnecessarily complex in how it exits (has to check for last entry twice).

Describe the solution you'd like
Consider a simpler while or for loop with a break, don't mix index w/ a command code.

Describe alternatives you've considered
None

Additional context
Code review

Requester Info
Jacob Hageman - NASA/GSFC

thnkslprpt added a commit to thnkslprpt/cFE that referenced this issue May 9, 2023
thnkslprpt added a commit to thnkslprpt/cFE that referenced this issue May 9, 2023
thnkslprpt added a commit to thnkslprpt/cFE that referenced this issue Oct 26, 2023
thnkslprpt added a commit to thnkslprpt/cFE that referenced this issue Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant