Skip to content

Commit

Permalink
Fix nasa#262, Update inaccurate event ID name
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Oct 18, 2022
1 parent 09a899f commit 79a6622
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fsw/src/cf_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ void CF_ProcessMsg(CFE_SB_Buffer_t *msg)

default:
++CF_AppData.hk.counters.err;
CFE_EVS_SendEvent(CF_EID_ERR_INIT_CMD_LENGTH, CFE_EVS_EventType_ERROR,
CFE_EVS_SendEvent(CF_MID_ERR_EID, CFE_EVS_EventType_ERROR,
"CF: invalid command packet id=0x%lx", (unsigned long)CFE_SB_MsgIdToValue(msg_id));
break;
}
Expand Down
2 changes: 1 addition & 1 deletion fsw/src/cf_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
*
* Invalid message ID received on the software bus pipe
*/
#define CF_EID_ERR_INIT_CMD_LENGTH (28)
#define CF_MID_ERR_EID (28)

/**
* \brief CF SB Receive Buffer Failed Event ID
Expand Down
2 changes: 1 addition & 1 deletion unit-test/cf_app_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ void Test_CF_ProcessMsg_UnrecognizedCommandEnterDefaultPath(void)
/* Assert */
UtAssert_UINT32_EQ(CF_AppData.hk.counters.err, 1);
UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1);
UT_CF_AssertEventID(CF_EID_ERR_INIT_CMD_LENGTH);
UT_CF_AssertEventID(CF_MID_ERR_EID);
}

/*******************************************************************************
Expand Down

0 comments on commit 79a6622

Please sign in to comment.