From e23416c988454f3ffb7ad77e85b747875bcc4f68 Mon Sep 17 00:00:00 2001 From: Avi Date: Sat, 22 Oct 2022 21:13:59 +1000 Subject: [PATCH] Fix #135, Add version information to NOOP event --- fsw/src/to_lab_cmds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fsw/src/to_lab_cmds.c b/fsw/src/to_lab_cmds.c index 980d7d7..9f40d8a 100644 --- a/fsw/src/to_lab_cmds.c +++ b/fsw/src/to_lab_cmds.c @@ -28,6 +28,7 @@ #include "to_lab_msg.h" #include "to_lab_eventids.h" #include "to_lab_msgids.h" +#include "to_lab_version.h" /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -61,7 +62,8 @@ CFE_Status_t TO_LAB_EnableOutputCmd(const TO_LAB_EnableOutputCmd_t *data) /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ CFE_Status_t TO_LAB_NoopCmd(const TO_LAB_NoopCmd_t *data) { - CFE_EVS_SendEvent(TO_LAB_NOOP_INF_EID, CFE_EVS_EventType_INFORMATION, "No-op command"); + CFE_EVS_SendEvent(TO_LAB_NOOP_INF_EID, CFE_EVS_EventType_INFORMATION, "TO: NOOP command. Version %d.%d.%d.%d", + TO_LAB_MAJOR_VERSION, TO_LAB_MINOR_VERSION, TO_LAB_REVISION, TO_LAB_MISSION_REV); ++TO_LAB_Global.HkTlm.Payload.CommandCounter; return CFE_SUCCESS; }