From da65a010a32c946d25bbbc4dfb590ece00215c90 Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Tue, 14 Sep 2021 15:03:46 +0800 Subject: [PATCH] fixed invalid taskEXIT_CRITICAL --- components/freertos/tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/freertos/tasks.c b/components/freertos/tasks.c index 0feff510ae..a8da2be63d 100644 --- a/components/freertos/tasks.c +++ b/components/freertos/tasks.c @@ -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. */