Skip to content

Commit

Permalink
Fix nasa#60, Apply consistent Event ID names to common events in SC
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Nov 1, 2023
1 parent ab3a9a0 commit e70d884
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions fsw/inc/sc_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* This event message is issued when a command is received, but it is not of the expected
* length
*/
#define SC_LEN_ERR_EID 2
#define SC_CMD_LEN_ERR_EID 2

/**
* \brief SC Create Pipe Failed Event ID
Expand All @@ -61,7 +61,7 @@
* This event message is issued when #CFE_SB_CreatePipe returns an
* error
*/
#define SC_INIT_SB_CREATE_ERR_EID 3
#define SC_CR_PIPE_ERR_EID 3

/**
* \brief SC Housekeeping Request Subscribe Failed Event ID
Expand Down Expand Up @@ -508,7 +508,7 @@
* \par Cause:
* This event message is issued when the #SC_RESET_COUNTERS_CC command was received
*/
#define SC_RESET_DEB_EID 51
#define SC_RESET_INF_EID 51

/**
* \brief SC No-op Command Event ID
Expand Down Expand Up @@ -585,7 +585,7 @@
* This event message is issued when an invalid command code was received in
* the command pipe
*/
#define SC_INVLD_CMD_ERR_EID 64
#define SC_CC_ERR_EID 64

/**
* \brief SC RTS Info Table Get Address Failed Event ID
Expand Down
4 changes: 2 additions & 2 deletions fsw/src/sc_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ CFE_Status_t SC_AppInit(void)
Result = CFE_SB_CreatePipe(&SC_OperData.CmdPipe, SC_PIPE_DEPTH, SC_CMD_PIPE_NAME);
if (Result != CFE_SUCCESS)
{
CFE_EVS_SendEvent(SC_INIT_SB_CREATE_ERR_EID, CFE_EVS_EventType_ERROR,
"Software Bus Create Pipe returned: 0x%08X", (unsigned int)Result);
CFE_EVS_SendEvent(SC_CR_PIPE_ERR_EID, CFE_EVS_EventType_ERROR, "Software Bus Create Pipe returned: 0x%08X",
(unsigned int)Result);
return (Result);
}

Expand Down
2 changes: 1 addition & 1 deletion fsw/src/sc_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ bool SC_CompareAbsTime(SC_AbsTimeTag_t AbsTime1, SC_AbsTimeTag_t AbsTime2);
* \retval 0 When current ATS index is 1
* \retval 1 When current ATS index is 0
*
* \sa #SC_LEN_ERR_EID
* \sa #SC_CMD_LEN_ERR_EID
*/
uint16 SC_ToggleAtsIndex(void);

Expand Down

0 comments on commit e70d884

Please sign in to comment.