diff --git a/modules/time/fsw/src/cfe_time_tone.c b/modules/time/fsw/src/cfe_time_tone.c index 3adc00ab9..12b96d4fe 100644 --- a/modules/time/fsw/src/cfe_time_tone.c +++ b/modules/time/fsw/src/cfe_time_tone.c @@ -1090,6 +1090,7 @@ 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 @@ -1097,6 +1098,7 @@ void CFE_TIME_Tone1HzTask(void) ** (this is done by scheduler in non-fake mode) */ CFE_SB_TransmitMsg(CFE_MSG_PTR(CFE_TIME_Global.ToneSendCmd.CommandHeader), true); +#endif #endif /* diff --git a/modules/time/fsw/src/cfe_time_utils.c b/modules/time/fsw/src/cfe_time_utils.c index ff04d5c1b..be57ffb13 100644 --- a/modules/time/fsw/src/cfe_time_utils.c +++ b/modules/time/fsw/src/cfe_time_utils.c @@ -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 /* diff --git a/modules/time/ut-coverage/time_UT.c b/modules/time/ut-coverage/time_UT.c index dd1128b1d..40e9c94d1 100644 --- a/modules/time/ut-coverage/time_UT.c +++ b/modules/time/ut-coverage/time_UT.c @@ -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++;