Skip to content

Commit

Permalink
Fix nasa#80, exit the main loop if init fails
Browse files Browse the repository at this point in the history
Initialize the "RunStatus" to ERROR if initialization fails.
This causes the CFE_ES_RunLoop function to return false, and
the app will exit with an error status.
  • Loading branch information
jphickey committed May 24, 2021
1 parent 4a1b72e commit 4f82001
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fsw/src/sch_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ void SCH_Lab_AppMain(void)
if (Status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("SCH_LAB: Error Initializing RC = 0x%08lX\n", (unsigned long)Status);
RunStatus = CFE_ES_RunStatus_APP_ERROR;
}

/* Loop Forever */
Expand Down

0 comments on commit 4f82001

Please sign in to comment.