Merge branch 'bugfix/fix-invalid-task-exit-critical' into 'master'

fixed invalid taskEXIT_CRITICAL

See merge request espressif/esp-idf!15191
pull/7680/head
Zim Kalinowski 2021-09-14 12:02:10 +00:00
commit 1ab631449f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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