From 20ece719cfda8c48cfe9e1d457c8cc3291520156 Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Tue, 30 Jan 2024 11:14:05 +1000 Subject: [PATCH] Fix #190, Add an event for `ResetCountersCmd` --- fsw/inc/to_lab_eventids.h | 1 + fsw/src/to_lab_cmds.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/fsw/inc/to_lab_eventids.h b/fsw/inc/to_lab_eventids.h index ddf3dde..4279f69 100644 --- a/fsw/inc/to_lab_eventids.h +++ b/fsw/inc/to_lab_eventids.h @@ -40,6 +40,7 @@ #define TO_LAB_ADDPKT_ERR_EID 10 #define TO_LAB_REMOVEPKT_ERR_EID 11 #define TO_LAB_REMOVEALLPTKS_ERR_EID 12 +#define TO_LAB_RESET_INF_EID 13 #define TO_LAB_ADDPKT_INF_EID 15 #define TO_LAB_REMOVEPKT_INF_EID 16 #define TO_LAB_REMOVEALLPKTS_INF_EID 17 diff --git a/fsw/src/to_lab_cmds.c b/fsw/src/to_lab_cmds.c index 980d7d7..d035f70 100644 --- a/fsw/src/to_lab_cmds.c +++ b/fsw/src/to_lab_cmds.c @@ -75,6 +75,9 @@ CFE_Status_t TO_LAB_ResetCountersCmd(const TO_LAB_ResetCountersCmd_t *data) { TO_LAB_Global.HkTlm.Payload.CommandErrorCounter = 0; TO_LAB_Global.HkTlm.Payload.CommandCounter = 0; + + CFE_EVS_SendEvent(TO_LAB_RESET_INF_EID, CFE_EVS_EventType_INFORMATION, "Reset counters command"); + return CFE_SUCCESS; }