From ea9219f2e6cd36c5f87bbefd7c245701377b3004 Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Wed, 1 Nov 2023 21:24:52 +0200 Subject: [PATCH] Fix #52, Add version information to NOOP event --- fsw/src/ci_lab_cmds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fsw/src/ci_lab_cmds.c b/fsw/src/ci_lab_cmds.c index bda0665..2a02fe8 100644 --- a/fsw/src/ci_lab_cmds.c +++ b/fsw/src/ci_lab_cmds.c @@ -27,6 +27,7 @@ #include "ci_lab_app.h" #include "ci_lab_cmds.h" +#include "ci_lab_version.h" /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -39,7 +40,8 @@ CFE_Status_t CI_LAB_NoopCmd(const CI_LAB_NoopCmd_t *cmd) /* Does everything the name implies */ CI_LAB_Global.HkTlm.Payload.CommandCounter++; - CFE_EVS_SendEvent(CI_LAB_NOOP_INF_EID, CFE_EVS_EventType_INFORMATION, "CI: NOOP command"); + CFE_EVS_SendEvent(CI_LAB_NOOP_INF_EID, CFE_EVS_EventType_INFORMATION, "CI: NOOP command. Version %d.%d.%d.%d", + CI_LAB_MAJOR_VERSION, CI_LAB_MINOR_VERSION, CI_LAB_REVISION, CI_LAB_MISSION_REV); return CFE_SUCCESS; }