This commit is contained in:
Kannajosyula Harsha Vardhan 2026-07-04 08:08:09 +03:00 committed by GitHub
commit d71242fbb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2940,7 +2940,7 @@ STATIC void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
* being used for anything else. */
if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == ( ( TickType_t ) 0U ) )
{
listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxNewPriority ) );
listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxTCB->uxPriority ) );
}
else
{