This commit is contained in:
Ching-Hsin,Lee 2024-07-08 12:52:16 +08:00
parent 98faa785cb
commit 9a097c51dd

View file

@ -2101,7 +2101,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
{ {
if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority ) if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
{ {
pxCurrentTCB = pxTCB; pxCurrentTCB = pxNewTCB;
} }
else else
{ {