Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #262, Update inaccurate event ID name #335

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_INVALID_MID (28)
#define CF_MID_ERR_EID (28)

/**
* \brief CF SB Receive Buffer Failed Event ID
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 @@ -163,7 +163,6 @@ typedef enum

/* keep last */
CF_TxnStatus_MAX = 22

} CF_TxnStatus_t;

/**
Expand Down
2 changes: 1 addition & 1 deletion fsw/src/cf_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void CF_AppPipe(const CFE_SB_Buffer_t *msg)

default:
++CF_AppData.hk.Payload.counters.err;
CFE_EVS_SendEvent(CF_EID_ERR_INVALID_MID, CFE_EVS_EventType_ERROR, "CF: invalid command packet id=0x%lx",
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 unit-test/cf_dispatch_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ void Test_CF_AppPipe_UnrecognizedCommandEnterDefaultPath(void)
/* Assert */
UtAssert_UINT32_EQ(CF_AppData.hk.Payload.counters.err, 1);
UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1);
UT_CF_AssertEventID(CF_EID_ERR_INVALID_MID);
UT_CF_AssertEventID(CF_MID_ERR_EID);
}

void add_CF_ProcessGroundCommand_tests(void)
Expand Down
Loading