Skip to content

Commit

Permalink
Set CRC and Timestamp MAT cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
dmknutsen committed Aug 3, 2023
1 parent 4d38d46 commit e27e591
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fsw/src/hs_monitors.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
/*************************************************************************
** Includes
*************************************************************************/
#include "cfe_msg_custom_api.h"
#include "hs_app.h"
#include "hs_monitors.h"
#include "hs_sysmon.h"
#include "hs_tbldefs.h"
#include "hs_eventids.h"
#include "hs_utils.h"
#include "cfe_evs_msg.h"

#include <string.h>

Expand Down Expand Up @@ -186,6 +186,8 @@ void HS_MonitorApplications(void)
if ((HS_AppData.MsgActCooldown[MsgActsIndex] == 0) &&
(HS_AppData.MATablePtr[MsgActsIndex].EnableState != HS_MAT_STATE_DISABLED))
{
CFE_MSG_SetGatewayCRC((CFE_MSG_Message_t *)&HS_AppData.MATablePtr[MsgActsIndex].MsgBuf);
CFE_MSG_SetMsgTime((CFE_MSG_Message_t *)&HS_AppData.MATablePtr[MsgActsIndex].MsgBuf, CFE_TIME_GetTime());
CFE_SB_TransmitMsg(
(const CFE_MSG_Message_t *)&HS_AppData.MATablePtr[MsgActsIndex].MsgBuf, true);
HS_AppData.MsgActExec++;
Expand Down Expand Up @@ -340,6 +342,8 @@ void HS_MonitorEvent(const CFE_EVS_LongEventTlm_t *EventPtr)
(HS_AppData.MATablePtr[MsgActsIndex].EnableState != HS_MAT_STATE_DISABLED))
{
SendPtr = (CFE_SB_Buffer_t *)&HS_AppData.MATablePtr[MsgActsIndex].MsgBuf;
CFE_MSG_SetGatewayCRC((CFE_MSG_Message_t *)&HS_AppData.MATablePtr[MsgActsIndex].MsgBuf);
CFE_MSG_SetMsgTime((CFE_MSG_Message_t *)&HS_AppData.MATablePtr[MsgActsIndex].MsgBuf, CFE_TIME_GetTime());
CFE_SB_TransmitMsg(&SendPtr->Msg, true);

HS_AppData.MsgActExec++;
Expand Down

0 comments on commit e27e591

Please sign in to comment.