Skip to content

Commit

Permalink
Merge pull request nasa#2002 from zachar1a/fix-#1537_replace_hardcode…
Browse files Browse the repository at this point in the history
…d_msg_limits_in_TIME_services

Fix nasa#1537, replacing hardcoded message limit in TIME services
  • Loading branch information
astrogeco committed Nov 10, 2021
2 parents 991014c + e52ac7a commit 3535ddb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/time/fsw/src/cfe_time_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ int32 CFE_TIME_TaskInit(void)
#endif

#if (CFE_PLATFORM_TIME_CFG_SERVER == true)
Status = CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_TIME_TONE_CMD_MID), CFE_TIME_Global.CmdPipe, 4);
Status = CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_TIME_TONE_CMD_MID), CFE_TIME_Global.CmdPipe,
CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT);
#endif
if (Status != CFE_SUCCESS)
{
Expand All @@ -216,7 +217,8 @@ int32 CFE_TIME_TaskInit(void)
#endif

#if (CFE_PLATFORM_TIME_CFG_SERVER == true)
Status = CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_TIME_DATA_CMD_MID), CFE_TIME_Global.CmdPipe, 4);
Status = CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_TIME_DATA_CMD_MID), CFE_TIME_Global.CmdPipe,
CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT);
#endif
if (Status != CFE_SUCCESS)
{
Expand All @@ -232,7 +234,8 @@ int32 CFE_TIME_TaskInit(void)
#endif

#if (CFE_PLATFORM_TIME_CFG_SERVER == true)
Status = CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_TIME_1HZ_CMD_MID), CFE_TIME_Global.CmdPipe, 4);
Status = CFE_SB_SubscribeLocal(CFE_SB_ValueToMsgId(CFE_TIME_1HZ_CMD_MID), CFE_TIME_Global.CmdPipe,
CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT);
#endif

if (Status != CFE_SUCCESS)
Expand Down

0 comments on commit 3535ddb

Please sign in to comment.