Skip to content

Commit

Permalink
Merge pull request #1699 from jphickey/fix-1698-retcode-check
Browse files Browse the repository at this point in the history
Fix #1698, correct return code check
  • Loading branch information
astrogeco authored Jul 21, 2021
2 parents 33a4f19 + 31a2f82 commit ff1193b
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 ff1193b

Please sign in to comment.