From f4f103c6462d705f3cb379a42e211acc0d94d71f Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Wed, 29 May 2024 20:23:25 +0200 Subject: [PATCH] Fix #72, Update Reset Counters event type to INFO --- fsw/inc/md_events.h | 4 ++-- fsw/inc/md_msgdefs.h | 2 +- fsw/src/md_app.c | 2 +- unit-test/md_app_tests.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fsw/inc/md_events.h b/fsw/inc/md_events.h index 6860eee..998a505 100644 --- a/fsw/inc/md_events.h +++ b/fsw/inc/md_events.h @@ -121,13 +121,13 @@ /** * \brief MD Reset Counters Command Event ID * - * \par Type: DEBUG + * \par Type: INFORMATION * * \par Cause: * * Issued upon receipt of a Memory Dwell Reset Counters command. */ -#define MD_RESET_CNTRS_DBG_EID 11 +#define MD_RESET_CNTRS_INF_EID 11 /** * \brief MD Start Command Event ID diff --git a/fsw/inc/md_msgdefs.h b/fsw/inc/md_msgdefs.h index 39bb3fd..11b3117 100644 --- a/fsw/inc/md_msgdefs.h +++ b/fsw/inc/md_msgdefs.h @@ -83,7 +83,7 @@ * the following telemetry: * - #MD_HkTlm_Payload_t.ValidCmdCntr will be set to zero. * - #MD_HkTlm_Payload_t.InvalidCmdCntr will be set to zero. - * - The #MD_RESET_CNTRS_DBG_EID debug event message will be generated. + * - The #MD_RESET_CNTRS_INF_EID informational event message will be generated. * * \par Error Conditions * This command may fail for the following reason(s): diff --git a/fsw/src/md_app.c b/fsw/src/md_app.c index 9d849ab..c22d6a2 100644 --- a/fsw/src/md_app.c +++ b/fsw/src/md_app.c @@ -622,7 +622,7 @@ void MD_ExecRequest(const CFE_SB_Buffer_t *BufPtr) case MD_RESET_CNTRS_CC: - CFE_EVS_SendEvent(MD_RESET_CNTRS_DBG_EID, CFE_EVS_EventType_DEBUG, "Reset Counters Cmd Received"); + CFE_EVS_SendEvent(MD_RESET_CNTRS_INF_EID, CFE_EVS_EventType_INFORMATION, "Reset Counters Cmd Received"); MD_AppData.CmdCounter = 0; MD_AppData.ErrCounter = 0; break; diff --git a/unit-test/md_app_tests.c b/unit-test/md_app_tests.c index a801327..b0b8416 100644 --- a/unit-test/md_app_tests.c +++ b/unit-test/md_app_tests.c @@ -1438,8 +1438,8 @@ void MD_ExecRequest_Test_ResetCounters(void) UtAssert_True(MD_AppData.CmdCounter == 0, "MD_AppData.CmdCounter == 0"); UtAssert_True(MD_AppData.ErrCounter == 0, "MD_AppData.ErrCounter == 0"); - UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, MD_RESET_CNTRS_DBG_EID); - UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventType, CFE_EVS_EventType_DEBUG); + UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, MD_RESET_CNTRS_INF_EID); + UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventType, CFE_EVS_EventType_INFORMATION); strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH);