From 12f0d571be06ec6d476619440a67a7f7f9f74d14 Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Tue, 14 Nov 2023 19:39:45 +0200 Subject: [PATCH] Fix #131, Rename `CommandCode` variable to `Fcncode` --- fsw/src/to_lab_dispatch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fsw/src/to_lab_dispatch.c b/fsw/src/to_lab_dispatch.c index 4f6c77c..8b4c809 100644 --- a/fsw/src/to_lab_dispatch.c +++ b/fsw/src/to_lab_dispatch.c @@ -37,11 +37,11 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ void TO_LAB_ProcessGroundCommand(const CFE_SB_Buffer_t *SBBufPtr) { - CFE_MSG_FcnCode_t CommandCode = 0; + CFE_MSG_FcnCode_t FcnCode = 0; - CFE_MSG_GetFcnCode(&SBBufPtr->Msg, &CommandCode); + CFE_MSG_GetFcnCode(&SBBufPtr->Msg, &FcnCode); - switch (CommandCode) + switch (FcnCode) { case TO_LAB_NOOP_CC: TO_LAB_NoopCmd((const TO_LAB_NoopCmd_t *)SBBufPtr); @@ -74,7 +74,7 @@ void TO_LAB_ProcessGroundCommand(const CFE_SB_Buffer_t *SBBufPtr) default: CFE_EVS_SendEvent(TO_LAB_FNCODE_ERR_EID, CFE_EVS_EventType_ERROR, "L%d TO: Invalid Function Code Rcvd In Ground Command 0x%x", __LINE__, - (unsigned int)CommandCode); + (unsigned int)FcnCode); ++TO_LAB_Global.HkTlm.Payload.CommandErrorCounter; } }