Add missing Task Notification IFDEF (#967)

Wrap the task notification check in vTaskGetInfo() in in a  #if ( configUSE_TASK_NOTIFICATIONS == 1 )
This commit is contained in:
Soren Ptak 2024-01-29 12:19:09 -05:00 committed by GitHub
parent 722596eaae
commit d63434493a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6211,6 +6211,8 @@ static void prvCheckTasksWaitingTermination( void )
pxTaskStatus->eCurrentState = eBlocked; pxTaskStatus->eCurrentState = eBlocked;
} }
else else
{
#if ( configUSE_TASK_NOTIFICATIONS == 1 )
{ {
BaseType_t x; BaseType_t x;
@ -6228,6 +6230,8 @@ static void prvCheckTasksWaitingTermination( void )
} }
} }
} }
#endif /* if ( configUSE_TASK_NOTIFICATIONS == 1 ) */
}
} }
( void ) xTaskResumeAll(); ( void ) xTaskResumeAll();
} }