Refactor CFE_TBL_SearchCmdHndlrTbl
to unmix error codes with indexes and simplify loop
#1519
Labels
CFE_TBL_SearchCmdHndlrTbl
to unmix error codes with indexes and simplify loop
#1519
Is your feature request related to a problem? Please describe.
Mixes error codes (at least by name) with an index:
cFE/modules/tbl/fsw/src/cfe_tbl_task.c
Line 340 in 84ba9a9
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
The text was updated successfully, but these errors were encountered: