Skip to content

Commit

Permalink
Merge pull request #2400 from skliper:fix1991-triggermode_check
Browse files Browse the repository at this point in the history
Fix #1991, TriggerMode unsigned compare with 0
  • Loading branch information
dzbaker committed Sep 1, 2023
2 parents 92887fa + 126e23d commit 11fa058
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/es/fsw/src/cfe_es_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ int32 CFE_ES_StartPerfDataCmd(const CFE_ES_StartPerfDataCmd_t *data)
PerfDumpState->PendingState == CFE_ES_PerfDumpState_IDLE)
{
/* Make sure Trigger Mode is valid */
/* cppcheck-suppress unsignedPositive */
if ((CmdPtr->TriggerMode >= CFE_ES_PERF_TRIGGER_START) && (CmdPtr->TriggerMode < CFE_ES_PERF_MAX_MODES))
if (CmdPtr->TriggerMode < CFE_ES_PERF_MAX_MODES)
{
CFE_ES_Global.TaskData.CommandCounter++;

Expand Down

0 comments on commit 11fa058

Please sign in to comment.