Skip to content

Commit

Permalink
Fix #147, Add check for success of CFE_TBL_Load() during Initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Oct 24, 2022
1 parent a410436 commit 6edee06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fsw/src/sample_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ int32 SAMPLE_APP_Init(void)
else
{
status = CFE_TBL_Load(SAMPLE_APP_Data.TblHandles[0], CFE_TBL_SRC_FILE, SAMPLE_APP_TABLE_FILE);
if (status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("Sample App: Error Loading Table, RC = 0x%08lX\n", (unsigned long)status);

return status;
}
}

CFE_EVS_SendEvent(SAMPLE_APP_STARTUP_INF_EID, CFE_EVS_EventType_INFORMATION, "SAMPLE App Initialized.%s",
Expand Down

0 comments on commit 6edee06

Please sign in to comment.