From 6ee152dd945dc008f7c5646acf03cd6ec5ba9d2e Mon Sep 17 00:00:00 2001 From: bradleysmith23 Date: Mon, 5 Feb 2024 11:06:58 -0800 Subject: [PATCH] Update location of uxCurrentListLength Declaration --- tasks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks.c b/tasks.c index 4091bf75c..598f0018e 100644 --- a/tasks.c +++ b/tasks.c @@ -3106,7 +3106,6 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, void vTaskSuspend( TaskHandle_t xTaskToSuspend ) { TCB_t * pxTCB; - UBaseType_t uxCurrentListLength; traceENTER_vTaskSuspend( xTaskToSuspend ); @@ -3176,6 +3175,8 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, #if ( configNUMBER_OF_CORES == 1 ) { + UBaseType_t uxCurrentListLength; + if( pxTCB == pxCurrentTCB ) { if( xSchedulerRunning != pdFALSE )