fixed invalid taskEXIT_CRITICAL

This commit is contained in:
Zim Kalinowski 2021-09-14 15:03:46 +08:00 committed by BOT
parent d8a21db37a
commit 0a7159afad

View File

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