From 72bda01cbad47604c77c8dcab6b5d4149fe02393 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Mon, 22 Jan 2024 09:27:49 -0500 Subject: [PATCH] Fix #424, Rename mismatched argument --- fsw/src/cf_eds_dispatch.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fsw/src/cf_eds_dispatch.c b/fsw/src/cf_eds_dispatch.c index 9ca2b97c..001b7f4f 100644 --- a/fsw/src/cf_eds_dispatch.c +++ b/fsw/src/cf_eds_dispatch.c @@ -41,19 +41,19 @@ static const CF_Application_Component_Telecommand_DispatchTable_t CF_TC_DISPATCH /* CF_TaskPipe() -- Process command pipe message */ /* */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -void CF_AppPipe(const CFE_SB_Buffer_t *SbBufPtr) +void CF_AppPipe(const CFE_SB_Buffer_t *msg) { CFE_Status_t status; CFE_SB_MsgId_t MsgId; CFE_MSG_Size_t MsgSize; CFE_MSG_FcnCode_t MsgFc; - status = CF_Application_Component_Telecommand_Dispatch(CFE_SB_Telecommand_indication_Command_ID, SbBufPtr, + status = CF_Application_Component_Telecommand_Dispatch(CFE_SB_Telecommand_indication_Command_ID, msg, &CF_TC_DISPATCH_TABLE); if (status != CFE_SUCCESS) { - CFE_MSG_GetMsgId(&SbBufPtr->Msg, &MsgId); + CFE_MSG_GetMsgId(&msg->Msg, &MsgId); ++CF_AppData.hk.Payload.counters.err; if (status == CFE_STATUS_UNKNOWN_MSG_ID) @@ -64,15 +64,15 @@ void CF_AppPipe(const CFE_SB_Buffer_t *SbBufPtr) } else if (status == CFE_STATUS_WRONG_MSG_LENGTH) { - CFE_MSG_GetSize(&SbBufPtr->Msg, &MsgSize); - CFE_MSG_GetFcnCode(&SbBufPtr->Msg, &MsgFc); + CFE_MSG_GetSize(&msg->Msg, &MsgSize); + CFE_MSG_GetFcnCode(&msg->Msg, &MsgFc); CFE_EVS_SendEvent(CF_CMD_LEN_ERR_EID, CFE_EVS_EventType_ERROR, "Invalid length for command: ID = 0x%X, CC = %d, length = %u", (unsigned int)CFE_SB_MsgIdToValue(MsgId), (int)MsgFc, (unsigned int)MsgSize); } else { - CFE_MSG_GetFcnCode(&SbBufPtr->Msg, &MsgFc); + CFE_MSG_GetFcnCode(&msg->Msg, &MsgFc); CFE_EVS_SendEvent(CF_CC_ERR_EID, CFE_EVS_EventType_ERROR, "L%d TO: Invalid Function Code Rcvd In Ground Command 0x%x", __LINE__, (unsigned int)MsgFc);