Skip to content

Commit 1aaa318

Browse files
authored
Update INFINITE_LOOP control (#775)
* Use for loop instead of while loop for INFINITE_LOOP control
1 parent 80a390c commit 1aaa318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5118,7 +5118,7 @@ void vTaskMissedYield( void )
51185118

51195119
taskYIELD();
51205120

5121-
while( INFINITE_LOOP() )
5121+
for( ; INFINITE_LOOP(); )
51225122
{
51235123
#if ( configUSE_PREEMPTION == 0 )
51245124
{
@@ -5203,7 +5203,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
52035203
}
52045204
#endif /* #if ( configNUMBER_OF_CORES > 1 ) */
52055205

5206-
while( INFINITE_LOOP() )
5206+
for( ; INFINITE_LOOP(); )
52075207
{
52085208
/* See if any tasks have deleted themselves - if so then the idle task
52095209
* is responsible for freeing the deleted task's TCB and stack. */

0 commit comments

Comments
 (0)