From 360d0ca8b5ec4c05ee698709629ea30b43a8126b Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Thu, 18 Mar 2021 14:13:33 -0400 Subject: [PATCH] Fix #1187, Increment CreatePipeErrorCounter for all create pipe errors --- modules/sb/fsw/src/cfe_sb_api.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/modules/sb/fsw/src/cfe_sb_api.c b/modules/sb/fsw/src/cfe_sb_api.c index f96ba031d..b48715856 100644 --- a/modules/sb/fsw/src/cfe_sb_api.c +++ b/modules/sb/fsw/src/cfe_sb_api.c @@ -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__);