Skip to content

Commit

Permalink
Merge pull request #148 from thnkslprpt:fix-147-add-check-for-evs-reg…
Browse files Browse the repository at this point in the history
…ister-failure-during-init

Fix #147, Add check for failure of CFE_EVS_Register() during initialization
  • Loading branch information
dzbaker committed Nov 13, 2023
2 parents d64ae8d + 53caa1f commit 5d21890
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fsw/src/to_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,13 @@ int32 TO_LAB_init(void)
/*
** Register with EVS
*/
CFE_EVS_Register(NULL, 0, CFE_EVS_EventFilter_BINARY);
status = CFE_EVS_Register(NULL, 0, CFE_EVS_EventFilter_BINARY);
if (status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("TO_LAB: Error registering for Event Services, RC = 0x%08X\n", (unsigned int)status);
return status;
}

/*
** Initialize housekeeping packet (clear user data area)...
*/
Expand Down

0 comments on commit 5d21890

Please sign in to comment.