Skip to content

Commit

Permalink
Merge pull request #171 from thnkslprpt:fix-131-rename-CommandCode-to…
Browse files Browse the repository at this point in the history
…-FcnCode

Fix #131, Rename CommandCode variable to Fcncode
  • Loading branch information
dzbaker committed Oct 3, 2024
2 parents d972baf + 12f0d57 commit a014daf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fsw/src/to_lab_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit a014daf

Please sign in to comment.