Skip to content

Commit 9e82440

Browse files
committed
Fix #128, Standardize command responses
1 parent 8647f3d commit 9e82440

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fsw/inc/ds_msgdefs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* \par Command Verification
7171
* Evidence of success may be found in the following telemetry:
7272
* - #DS_HkTlm_Payload_t.CmdAcceptedCounter will reset to zero
73-
* - The #DS_RESET_INF_EID debug event message will be sent
73+
* - The #DS_RESET_INF_EID informational event message will be sent
7474
*
7575
* \par Error Conditions
7676
* This command can fail for the following reasons:
@@ -612,4 +612,4 @@
612612

613613
/**\}*/
614614

615-
#endif
615+
#endif

fsw/src/ds_cmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void DS_ResetCountersCmd(const CFE_SB_Buffer_t *BufPtr)
103103
DS_AppData.FilterTblLoadCounter = 0;
104104
DS_AppData.FilterTblErrCounter = 0;
105105

106-
CFE_EVS_SendEvent(DS_RESET_INF_EID, CFE_EVS_EventType_DEBUG, "Reset counters command");
106+
CFE_EVS_SendEvent(DS_RESET_INF_EID, CFE_EVS_EventType_INFORMATION, "Reset counters command");
107107
}
108108

109109
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

unit-test/ds_cmds_tests.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void DS_ResetCountersCmd_Test_Nominal(void)
9191

9292
UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1);
9393
UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, DS_RESET_INF_EID);
94-
UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventType, CFE_EVS_EventType_DEBUG);
94+
UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventType, CFE_EVS_EventType_INFORMATION);
9595

9696
/* Verify command struct size minus header is at least explicitly padded to 32-bit boundaries */
9797
UtAssert_True(CMD_STRUCT_DATA_IS_32_ALIGNED(DS_ResetCountersCmd_t), "DS_ResetCountersCmd_t is 32-bit aligned");

0 commit comments

Comments
 (0)