File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1090,13 +1090,15 @@ void CFE_TIME_Tone1HzTask(void)
10901090 */
10911091 CFE_SB_TransmitMsg (CFE_MSG_PTR (CFE_TIME_Global .ToneSignalCmd .CommandHeader ), true);
10921092
1093+ #if (CFE_PLATFORM_TIME_CFG_SERVER == true )
10931094#if (CFE_MISSION_TIME_CFG_FAKE_TONE == true )
10941095 /*
10951096 ** If we are simulating the tone signal, also generate the message
10961097 ** to send the tone to other time clients.
10971098 ** (this is done by scheduler in non-fake mode)
10981099 */
10991100 CFE_SB_TransmitMsg (CFE_MSG_PTR (CFE_TIME_Global .ToneSendCmd .CommandHeader ), true);
1101+ #endif
11001102#endif
11011103
11021104 /*
Original file line number Diff line number Diff line change @@ -347,10 +347,12 @@ void CFE_TIME_InitData(void)
347347 /*
348348 ** Initialize simulated tone send message ("fake tone" mode only)...
349349 */
350+ #if (CFE_PLATFORM_TIME_CFG_SERVER == true )
350351#if (CFE_MISSION_TIME_CFG_FAKE_TONE == true )
351352 CFE_MSG_Init (CFE_MSG_PTR (CFE_TIME_Global .ToneSendCmd .CommandHeader ),
352353 CFE_SB_ValueToMsgId (CFE_TIME_SEND_CMD_MID ),
353354 sizeof (CFE_TIME_Global .ToneSendCmd ));
355+ #endif
354356#endif
355357
356358 /*
Original file line number Diff line number Diff line change @@ -150,8 +150,10 @@ void Test_Init(void)
150150#if (CFE_PLATFORM_TIME_CFG_SERVER == true )
151151 ExpRtn ++ ;
152152#endif
153+ #if (CFE_PLATFORM_TIME_CFG_SERVER == true )
153154#if (CFE_MISSION_TIME_CFG_FAKE_TONE == true )
154155 ExpRtn ++ ;
156+ #endif
155157#endif
156158 /* account for 1Hz command, which is always enabled */
157159 ExpRtn ++ ;
You can’t perform that action at this time.
0 commit comments