Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a3de4e

Browse files
committedDec 14, 2023
Fix nasa#262, Update inaccurate event ID name
1 parent 515e3a8 commit 1a3de4e

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed
 

‎fsw/inc/cf_events.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
*
133133
* Invalid message ID received on the software bus pipe
134134
*/
135-
#define CF_EID_ERR_INIT_CMD_LENGTH (28)
135+
#define CF_MID_ERR_EID (28)
136136

137137
/**
138138
* \brief CF SB Receive Buffer Failed Event ID

‎fsw/src/cf_app.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ void CF_ProcessMsg(CFE_SB_Buffer_t *msg)
302302

303303
default:
304304
++CF_AppData.hk.Payload.counters.err;
305-
CFE_EVS_SendEvent(CF_EID_ERR_INIT_CMD_LENGTH, CFE_EVS_EventType_ERROR,
306-
"CF: invalid command packet id=0x%lx", (unsigned long)CFE_SB_MsgIdToValue(msg_id));
305+
CFE_EVS_SendEvent(CF_MID_ERR_EID, CFE_EVS_EventType_ERROR, "CF: invalid command packet id=0x%lx",
306+
(unsigned long)CFE_SB_MsgIdToValue(msg_id));
307307
break;
308308
}
309309
}

‎fsw/src/cf_cfdp_types.h

-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ typedef enum
162162

163163
/* keep last */
164164
CF_TxnStatus_MAX = 22
165-
166165
} CF_TxnStatus_t;
167166

168167
/**

‎unit-test/cf_app_tests.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ void Test_CF_ProcessMsg_UnrecognizedCommandEnterDefaultPath(void)
577577
/* Assert */
578578
UtAssert_UINT32_EQ(CF_AppData.hk.Payload.counters.err, 1);
579579
UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1);
580-
UT_CF_AssertEventID(CF_EID_ERR_INIT_CMD_LENGTH);
580+
UT_CF_AssertEventID(CF_MID_ERR_EID);
581581
}
582582

583583
/*******************************************************************************

0 commit comments

Comments
 (0)
Please sign in to comment.