Skip to content

Commit

Permalink
Merge pull request #136 from thnkslprpt:fix-135-add-version-informati…
Browse files Browse the repository at this point in the history
…on-to-noop-event

Fix #135, Add version information to NOOP event
  • Loading branch information
dzbaker committed Feb 23, 2024
2 parents 3f540d7 + e23416c commit 1fd99e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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,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;
}
Expand Down

0 comments on commit 1fd99e8

Please sign in to comment.