Skip to content

Commit 45241c9

Browse files
committed
Update for explicit precidence in vTaskDelete
1 parent 8e898b7 commit 45241c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,9 +1945,9 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
19451945
* hence xYieldPending is used to latch that a context switch is
19461946
* required. */
19471947
#if ( configNUMBER_OF_CORES == 1 )
1948-
portPRE_TASK_DELETE_HOOK( pxTCB, &xYieldPendings[ 0 ] );
1948+
portPRE_TASK_DELETE_HOOK( pxTCB, &( xYieldPendings[ 0 ] ) );
19491949
#else
1950-
portPRE_TASK_DELETE_HOOK( pxTCB, &xYieldPendings[ pxTCB->xTaskRunState ] );
1950+
portPRE_TASK_DELETE_HOOK( pxTCB, &( xYieldPendings[ pxTCB->xTaskRunState ] ) );
19511951
#endif
19521952
}
19531953
else

0 commit comments

Comments
 (0)