From dded3f483ebb25d43d99a7aad9bfdf138fa5920f Mon Sep 17 00:00:00 2001 From: "Ching-Hsin,Lee" Date: Mon, 8 Jul 2024 14:52:27 +0800 Subject: [PATCH] Update typo --- tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.c b/tasks.c index dcc26bee3..85094f992 100644 --- a/tasks.c +++ b/tasks.c @@ -1016,7 +1016,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION; TCB_t * const pxConstCurrentTCB = prvGetCurrentTaskTCBUnsafe(); /* Verify that the calling core always yields to higher priority tasks. */ - if( ( ( prvGetCurrentTaskTCBUnsafe->uxTaskAttributes & taskATTRIBUTE_IS_IDLE ) == 0U ) && + if( ( ( pxConstCurrentTCB->uxTaskAttributes & taskATTRIBUTE_IS_IDLE ) == 0U ) && ( pxTCB->uxPriority > pxConstCurrentTCB->uxPriority ) ) { configASSERT( ( xYieldPendings[ portGET_CORE_ID() ] == pdTRUE ) ||