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 Jul 15, 2023
1 parent 38cfee8 commit d04d6e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fsw/inc/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
4 changes: 2 additions & 2 deletions fsw/src/cf_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,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
1 change: 0 additions & 1 deletion fsw/src/cf_cfdp_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ typedef enum

/* keep last */
CF_TxnStatus_MAX = 22

} CF_TxnStatus_t;

/**
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 @@ -577,7 +577,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 d04d6e9

Please sign in to comment.