From 0859eeb7a636026b009b28ca57c0aa02d2b1dafb 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 | 2 +- fsw/src/md_app.c | 9 +++++---- unit-test/md_app_tests.c | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/fsw/inc/md_events.h b/fsw/inc/md_events.h index 74d85ba..568c6cc 100644 --- a/fsw/inc/md_events.h +++ b/fsw/inc/md_events.h @@ -121,7 +121,7 @@ /** * \brief MD Reset Counters Command Event ID * - * \par Type: DEBUG + * \par Type: INFORMATION * * \par Cause: * diff --git a/fsw/src/md_app.c b/fsw/src/md_app.c index beaf7d7..96558b3 100644 --- a/fsw/src/md_app.c +++ b/fsw/src/md_app.c @@ -622,10 +622,11 @@ void MD_ExecRequest(const CFE_SB_Buffer_t *BufPtr) case MD_RESET_CNTRS_CC: - CFE_EVS_SendEvent(MD_RESET_INF_EID, CFE_EVS_EventType_DEBUG, "Reset Counters Cmd Received"); - MD_AppData.CmdCounter = 0; - MD_AppData.ErrCounter = 0; - break; + CFE_EVS_SendEvent(MD_RESET_INF_EID, CFE_EVS_EventType_INFORMATION, + "Reset Counters Cmd Received"); + MD_AppData.CmdCounter = 0; + MD_AppData.ErrCounter = 0; + break; case MD_START_DWELL_CC: diff --git a/unit-test/md_app_tests.c b/unit-test/md_app_tests.c index 6599753..c0291fb 100644 --- a/unit-test/md_app_tests.c +++ b/unit-test/md_app_tests.c @@ -1439,7 +1439,8 @@ void MD_ExecRequest_Test_ResetCounters(void) UtAssert_True(MD_AppData.ErrCounter == 0, "MD_AppData.ErrCounter == 0"); UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, MD_RESET_INF_EID); - UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventType, CFE_EVS_EventType_DEBUG); + 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);