Skip to content

Commit

Permalink
Fix #135, Add version information to NOOP event
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Feb 23, 2024
1 parent d9bef53 commit 93342ef
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions fsw/src/to_lab_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "to_lab_msg.h"
#include "to_lab_eventids.h"
#include "to_lab_msgids.h"
#include "to_lab_version.h"

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
Expand Down Expand Up @@ -61,9 +62,15 @@ 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");
++TO_LAB_Global.HkTlm.Payload.CommandCounter;
return CFE_SUCCESS;
char VersionString[TO_LAB_CFG_MAX_VERSION_STR_LEN];

CFE_Config_GetVersionString(VersionString, TO_LAB_CFG_MAX_VERSION_STR_LEN, "TO Lab",
TO_LAB_VERSION, TO_LAB_BUILD_CODENAME, TO_LAB_LAST_OFFICIAL);

CFE_EVS_SendEvent(TO_LAB_NOOP_INF_EID, CFE_EVS_EventType_INFORMATION, "TO: NOOP command. %s", VersionString);

++TO_LAB_Global.HkTlm.Payload.CommandCounter;
return CFE_SUCCESS;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Expand Down

0 comments on commit 93342ef

Please sign in to comment.