From 9e82440a0a34d04c1e579d1ff453a753b64cd498 Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Sat, 8 Jun 2024 08:06:54 +0200 Subject: [PATCH] Fix #128, Standardize command responses --- fsw/inc/ds_msgdefs.h | 4 ++-- fsw/src/ds_cmds.c | 2 +- unit-test/ds_cmds_tests.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fsw/inc/ds_msgdefs.h b/fsw/inc/ds_msgdefs.h index 685ea9f..4441362 100644 --- a/fsw/inc/ds_msgdefs.h +++ b/fsw/inc/ds_msgdefs.h @@ -70,7 +70,7 @@ * \par Command Verification * Evidence of success may be found in the following telemetry: * - #DS_HkTlm_Payload_t.CmdAcceptedCounter will reset to zero - * - The #DS_RESET_INF_EID debug event message will be sent + * - The #DS_RESET_INF_EID informational event message will be sent * * \par Error Conditions * This command can fail for the following reasons: @@ -612,4 +612,4 @@ /**\}*/ -#endif \ No newline at end of file +#endif diff --git a/fsw/src/ds_cmds.c b/fsw/src/ds_cmds.c index c60f7bb..83cc493 100644 --- a/fsw/src/ds_cmds.c +++ b/fsw/src/ds_cmds.c @@ -103,7 +103,7 @@ void DS_ResetCountersCmd(const CFE_SB_Buffer_t *BufPtr) DS_AppData.FilterTblLoadCounter = 0; DS_AppData.FilterTblErrCounter = 0; - CFE_EVS_SendEvent(DS_RESET_INF_EID, CFE_EVS_EventType_DEBUG, "Reset counters command"); + CFE_EVS_SendEvent(DS_RESET_INF_EID, CFE_EVS_EventType_INFORMATION, "Reset counters command"); } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ diff --git a/unit-test/ds_cmds_tests.c b/unit-test/ds_cmds_tests.c index 750773c..8b3e280 100644 --- a/unit-test/ds_cmds_tests.c +++ b/unit-test/ds_cmds_tests.c @@ -91,7 +91,7 @@ void DS_ResetCountersCmd_Test_Nominal(void) UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1); UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, DS_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); /* Verify command struct size minus header is at least explicitly padded to 32-bit boundaries */ UtAssert_True(CMD_STRUCT_DATA_IS_32_ALIGNED(DS_ResetCountersCmd_t), "DS_ResetCountersCmd_t is 32-bit aligned");