Skip to content

Commit

Permalink
Fix #1698, correct return code check
Browse files Browse the repository at this point in the history
The return code of CFE_ES_StartAppTask is a CFE status code,
so it should be compared to CFE_SUCCESS, not OS_SUCCESS.
  • Loading branch information
jphickey committed Jul 21, 2021
1 parent 2afdbc1 commit 31a2f82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/es/fsw/src/cfe_es_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,15 +794,14 @@ void CFE_ES_CreateObjects(void)
*/
CFE_ES_LockSharedData(__func__, __LINE__);

if (ReturnCode == OS_SUCCESS)
if (ReturnCode == CFE_SUCCESS)
{
CFE_ES_AppRecordSetUsed(AppRecPtr, PendingAppId);

/*
** Increment the Core App counter.
*/
CFE_ES_Global.RegisteredCoreApps++;
ReturnCode = CFE_SUCCESS;
}
else
{
Expand Down

0 comments on commit 31a2f82

Please sign in to comment.