From 78416df03eb58ec53516436fcdfadfca209daabb Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 21 Jul 2021 10:38:55 -0400 Subject: [PATCH] Fix #1698, correct return code check The return code of CFE_ES_StartAppTask is a CFE status code, so it should be compared to CFE_SUCCESS, not OS_SUCCESS. --- modules/es/fsw/src/cfe_es_start.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/es/fsw/src/cfe_es_start.c b/modules/es/fsw/src/cfe_es_start.c index 6cd5ede42..3a72bfbcd 100644 --- a/modules/es/fsw/src/cfe_es_start.c +++ b/modules/es/fsw/src/cfe_es_start.c @@ -794,7 +794,7 @@ void CFE_ES_CreateObjects(void) */ CFE_ES_LockSharedData(__func__, __LINE__); - if (ReturnCode == OS_SUCCESS) + if (ReturnCode == CFE_SUCCESS) { CFE_ES_AppRecordSetUsed(AppRecPtr, PendingAppId); @@ -802,7 +802,6 @@ void CFE_ES_CreateObjects(void) ** Increment the Core App counter. */ CFE_ES_Global.RegisteredCoreApps++; - ReturnCode = CFE_SUCCESS; } else {