From 26e1859e8b450e7fc9d01ec15e665e7b57e8ce2c Mon Sep 17 00:00:00 2001 From: Ching-Hsin Lee Date: Mon, 4 Sep 2023 10:58:23 +0800 Subject: [PATCH] Update INFINITE_LOOP control * Use for loop instead of while loop for INFINITE_LOOP control --- tasks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.c b/tasks.c index 2786c5ab0e..6cb233e7a5 100644 --- a/tasks.c +++ b/tasks.c @@ -5118,7 +5118,7 @@ void vTaskMissedYield( void ) taskYIELD(); - while( INFINITE_LOOP() ) + for( ; INFINITE_LOOP(); ) { #if ( configUSE_PREEMPTION == 0 ) { @@ -5203,7 +5203,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters ) } #endif /* #if ( configNUMBER_OF_CORES > 1 ) */ - while( INFINITE_LOOP() ) + for( ; INFINITE_LOOP(); ) { /* See if any tasks have deleted themselves - if so then the idle task * is responsible for freeing the deleted task's TCB and stack. */