From 0a7159afadb6ac8d20c874b0ae51ac400cd04aa3 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 7755f91ef5..602816149a 100644 --- a/components/freertos/tasks.c +++ b/components/freertos/tasks.c @@ -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. */