Skip to content

Commit f65d679

Browse files
authored
Merge pull request #335 from thnkslprpt/fix-262-update-event-id-name
Fix #262, Update inaccurate event ID name
2 parents 2164734 + 28f3925 commit f65d679

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
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_INVALID_MID (28)
135+
#define CF_MID_ERR_EID (28)
136136

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

fsw/src/cf_cfdp_types.h

-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ typedef enum
163163

164164
/* keep last */
165165
CF_TxnStatus_MAX = 22
166-
167166
} CF_TxnStatus_t;
168167

169168
/**

fsw/src/cf_dispatch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void CF_AppPipe(const CFE_SB_Buffer_t *msg)
151151

152152
default:
153153
++CF_AppData.hk.Payload.counters.err;
154-
CFE_EVS_SendEvent(CF_EID_ERR_INVALID_MID, CFE_EVS_EventType_ERROR, "CF: invalid command packet id=0x%lx",
154+
CFE_EVS_SendEvent(CF_MID_ERR_EID, CFE_EVS_EventType_ERROR, "CF: invalid command packet id=0x%lx",
155155
(unsigned long)CFE_SB_MsgIdToValue(msg_id));
156156
break;
157157
}

unit-test/cf_dispatch_tests.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void Test_CF_AppPipe_UnrecognizedCommandEnterDefaultPath(void)
262262
/* Assert */
263263
UtAssert_UINT32_EQ(CF_AppData.hk.Payload.counters.err, 1);
264264
UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1);
265-
UT_CF_AssertEventID(CF_EID_ERR_INVALID_MID);
265+
UT_CF_AssertEventID(CF_MID_ERR_EID);
266266
}
267267

268268
void add_CF_ProcessGroundCommand_tests(void)

0 commit comments

Comments
 (0)