Update location of uxCurrentListLength Declaration

This commit is contained in:
bradleysmith23 2024-02-05 11:06:58 -08:00
parent 52559f478b
commit 6ee152dd94

View file

@ -3106,7 +3106,6 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
void vTaskSuspend( TaskHandle_t xTaskToSuspend ) void vTaskSuspend( TaskHandle_t xTaskToSuspend )
{ {
TCB_t * pxTCB; TCB_t * pxTCB;
UBaseType_t uxCurrentListLength;
traceENTER_vTaskSuspend( xTaskToSuspend ); traceENTER_vTaskSuspend( xTaskToSuspend );
@ -3176,6 +3175,8 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
#if ( configNUMBER_OF_CORES == 1 ) #if ( configNUMBER_OF_CORES == 1 )
{ {
UBaseType_t uxCurrentListLength;
if( pxTCB == pxCurrentTCB ) if( pxTCB == pxCurrentTCB )
{ {
if( xSchedulerRunning != pdFALSE ) if( xSchedulerRunning != pdFALSE )