Skip to content

Commit

Permalink
Fix #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 f91243c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fsw/src/cf_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ 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,
"CF: invalid command packet id=0x%lx", (unsigned long)CFE_SB_MsgIdToValue(msg_id));
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 f91243c

Please sign in to comment.