Skip to content

Commit

Permalink
Merge pull request nasa#1245 from skliper/fix1187-increment_createpip…
Browse files Browse the repository at this point in the history
…eerror

Fix nasa#1187, Increment CreatePipeErrorCounter for all create pipe errors
  • Loading branch information
astrogeco authored Mar 24, 2021
2 parents c9096a9 + 360d0ca commit 8807e63
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions modules/sb/fsw/src/cfe_sb_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,19 +211,8 @@ int32 CFE_SB_CreatePipe(CFE_SB_PipeId_t *PipeIdPtr, uint16 Depth, const char *Pi
}
PendingPipeId = CFE_RESOURCEID_UNDEFINED;

/*
* If there is a relevant error counter, increment it now
* while the global data is locked.
*/
switch (PendingEventId)
{
case CFE_SB_CR_PIPE_BAD_ARG_EID:
++CFE_SB_Global.HKTlmMsg.Payload.CreatePipeErrorCounter;
break;
default:
/* no counter */
break;
}
/* Increment error counter for all errors */
CFE_SB_Global.HKTlmMsg.Payload.CreatePipeErrorCounter++;
}

CFE_SB_UnlockSharedData(__func__, __LINE__);
Expand Down

0 comments on commit 8807e63

Please sign in to comment.