Skip to content

Commit

Permalink
Fix nasa#1187, Increment CreatePipeErrorCounter for all create pipe e…
Browse files Browse the repository at this point in the history
…rrors
  • Loading branch information
skliper committed Mar 23, 2021
1 parent 98bc158 commit 360d0ca
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 360d0ca

Please sign in to comment.