Skip to content

Commit

Permalink
Update INFINITE_LOOP control (#775)
Browse files Browse the repository at this point in the history
* Use for loop instead of while loop for INFINITE_LOOP control
  • Loading branch information
chinglee-iot authored Sep 4, 2023
1 parent 80a390c commit 1aaa318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -5118,7 +5118,7 @@ void vTaskMissedYield( void )

taskYIELD();

while( INFINITE_LOOP() )
for( ; INFINITE_LOOP(); )
{
#if ( configUSE_PREEMPTION == 0 )
{
Expand Down Expand Up @@ -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. */
Expand Down

0 comments on commit 1aaa318

Please sign in to comment.