Skip to content

Commit

Permalink
Fix #90, apply CFE_SB_ValueToMsgId where required
Browse files Browse the repository at this point in the history
Whenever an integer value is used as a CFE_SB_MsgId_t, it should go through
the explicit conversion using the supplied inline function.
  • Loading branch information
jphickey committed Sep 13, 2021
1 parent 19bf84c commit 1bd3dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsw/src/sch_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ int32 SCH_LAB_AppInit(void)
OS_printf("SCH Error creating pipe!\n");
}

Status = CFE_SB_Subscribe(CFE_TIME_1HZ_CMD_MID, SCH_LAB_Global.CmdPipe);
Status = CFE_SB_Subscribe(CFE_SB_ValueToMsgId(CFE_TIME_1HZ_CMD_MID), SCH_LAB_Global.CmdPipe);
if (Status != CFE_SUCCESS)
{
OS_printf("SCH Error subscribing to 1hz!\n");
Expand Down

0 comments on commit 1bd3dd3

Please sign in to comment.