Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions fsw/src/to_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ void TO_LAB_delete_callback(void)
CFE_Status_t TO_LAB_init(void)
{
CFE_Status_t status;
char PipeName[16];
uint16 PipeDepth;
char ToTlmPipeName[16];
uint16 ToTlmPipeDepth;
void *TblPtr;
char VersionString[TO_LAB_CFG_MAX_VERSION_STR_LEN];

Expand All @@ -123,10 +119,6 @@ CFE_Status_t TO_LAB_init(void)

TO_LAB_Global.AllowPassthru = true;
TO_LAB_Global.downlink_on = false;
PipeDepth = TO_LAB_PLATFORM_CMD_PIPE_DEPTH;
strcpy(PipeName, "TO_LAB_CMD_PIPE");
ToTlmPipeDepth = TO_LAB_PLATFORM_TLM_PIPE_DEPTH;
strcpy(ToTlmPipeName, "TO_LAB_TLM_PIPE");

/*
** Register with EVS
Expand Down Expand Up @@ -195,7 +187,7 @@ CFE_Status_t TO_LAB_init(void)
TO_LAB_Global.SubsTblPtr = TblPtr; /* Save returned address */

/* Subscribe to my commands */
status = CFE_SB_CreatePipe(&TO_LAB_Global.Cmd_pipe, PipeDepth, PipeName);
status = CFE_SB_CreatePipe(&TO_LAB_Global.Cmd_pipe, TO_LAB_PLATFORM_CMD_PIPE_DEPTH, "TO_LAB_CMD_PIPE");
if (status != CFE_SUCCESS)
{
CFE_EVS_SendEvent(TO_LAB_CR_PIPE_ERR_EID,
Expand All @@ -212,7 +204,7 @@ CFE_Status_t TO_LAB_init(void)
CFE_SB_Subscribe(CFE_SB_ValueToMsgId(TO_LAB_SEND_HK_MID), TO_LAB_Global.Cmd_pipe);

/* Create TO TLM pipe */
status = CFE_SB_CreatePipe(&TO_LAB_Global.Tlm_pipe, ToTlmPipeDepth, ToTlmPipeName);
status = CFE_SB_CreatePipe(&TO_LAB_Global.Tlm_pipe, TO_LAB_PLATFORM_TLM_PIPE_DEPTH, "TO_LAB_TLM_PIPE");
if (status != CFE_SUCCESS)
{
CFE_EVS_SendEvent(TO_LAB_TLMPIPE_ERR_EID,
Expand Down
Loading