Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/time/fsw/src/cfe_time_tone.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,13 +1090,15 @@ void CFE_TIME_Tone1HzTask(void)
*/
CFE_SB_TransmitMsg(CFE_MSG_PTR(CFE_TIME_Global.ToneSignalCmd.CommandHeader), true);

#if (CFE_PLATFORM_TIME_CFG_SERVER == true)
#if (CFE_MISSION_TIME_CFG_FAKE_TONE == true)
/*
** If we are simulating the tone signal, also generate the message
** to send the tone to other time clients.
** (this is done by scheduler in non-fake mode)
*/
CFE_SB_TransmitMsg(CFE_MSG_PTR(CFE_TIME_Global.ToneSendCmd.CommandHeader), true);
#endif
#endif

/*
Expand Down
2 changes: 2 additions & 0 deletions modules/time/fsw/src/cfe_time_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,12 @@ void CFE_TIME_InitData(void)
/*
** Initialize simulated tone send message ("fake tone" mode only)...
*/
#if (CFE_PLATFORM_TIME_CFG_SERVER == true)
#if (CFE_MISSION_TIME_CFG_FAKE_TONE == true)
CFE_MSG_Init(CFE_MSG_PTR(CFE_TIME_Global.ToneSendCmd.CommandHeader),
CFE_SB_ValueToMsgId(CFE_TIME_SEND_CMD_MID),
sizeof(CFE_TIME_Global.ToneSendCmd));
#endif
#endif

/*
Expand Down
2 changes: 2 additions & 0 deletions modules/time/ut-coverage/time_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ void Test_Init(void)
#if (CFE_PLATFORM_TIME_CFG_SERVER == true)
ExpRtn++;
#endif
#if (CFE_PLATFORM_TIME_CFG_SERVER == true)
#if (CFE_MISSION_TIME_CFG_FAKE_TONE == true)
ExpRtn++;
#endif
#endif
/* account for 1Hz command, which is always enabled */
ExpRtn++;
Expand Down
Loading