Skip to content

Commit 3673163

Browse files
authored
Merge pull request #2882 from alanc-gsfc/fix-2868-fix-time-send-cmd-on-client
Fix 2868 fix time send cmd on client
2 parents 1f16407 + aa809f4 commit 3673163

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎modules/time/fsw/src/cfe_time_tone.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
/*

‎modules/time/fsw/src/cfe_time_utils.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
/*

‎modules/time/ut-coverage/time_UT.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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++;

0 commit comments

Comments
 (0)