diff --git a/fsw/platform_inc/sch_lab_table.h b/fsw/platform_inc/sch_lab_table.h index 97724d9..ab41db7 100644 --- a/fsw/platform_inc/sch_lab_table.h +++ b/fsw/platform_inc/sch_lab_table.h @@ -48,6 +48,7 @@ typedef struct { CFE_SB_MsgId_t MessageID; /* Message ID for the table entry */ uint32 PacketRate; /* Rate: Send packet every N seconds */ + uint16 CmdCode; /* Command/Function code to set */ } SCH_LAB_ScheduleTableEntry_t; typedef struct diff --git a/fsw/src/sch_lab_app.c b/fsw/src/sch_lab_app.c index b76893d..0c7b3b6 100644 --- a/fsw/src/sch_lab_app.c +++ b/fsw/src/sch_lab_app.c @@ -196,6 +196,7 @@ int32 SCH_LAB_AppInit(void) if (ConfigEntry->PacketRate != 0) { CFE_MSG_Init(&LocalStateEntry->CmdHeader.Msg, ConfigEntry->MessageID, sizeof(LocalStateEntry->CmdHeader)); + CFE_MSG_SetFcnCode(&LocalStateEntry->CmdHeader.Msg, ConfigEntry->CmdCode); LocalStateEntry->PacketRate = ConfigEntry->PacketRate; } ++ConfigEntry;