diff --git a/tasks.c b/tasks.c index 1be3fca91..6d86326c5 100644 --- a/tasks.c +++ b/tasks.c @@ -3630,7 +3630,7 @@ static BaseType_t prvCreateIdleTasks( void ) #endif /* configSUPPORT_STATIC_ALLOCATION */ /* Break the loop if any of the idle task is failed to be created. */ - if( xReturn == pdFAIL ) + if( xReturn != pdPASS ) { break; }