fixed invalid taskEXIT_CRITICAL

This commit is contained in:
Zim Kalinowski 2021-09-14 15:03:46 +08:00
parent 502e132e5d
commit da65a010a3

View File

@ -4035,7 +4035,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
const UBaseType_t uxNonApplicationTasks = 1;
eSleepModeStatus eReturn = eStandardSleep;
taskEXIT_CRITICAL();
taskENTER_CRITICAL();
if( listCURRENT_LIST_LENGTH( &xPendingReadyList[xPortGetCoreID()] ) != 0 )
{
/* A task was made ready while the scheduler was suspended. */