Skip to content

Commit eb9ec69

Browse files
committed
Add number of cores check
1 parent 499dee2 commit eb9ec69

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
@@ -3259,13 +3259,13 @@ void vTaskStartScheduler( void )
32593259
{
32603260
BaseType_t xReturn;
32613261

3262-
#if ( configUSE_CORE_AFFINITY == 1 )
3262+
#if ( configUSE_CORE_AFFINITY == 1 ) && ( configNUMBER_OF_CORES > 1 )
32633263
{
32643264
/* Sanity check that the UBaseType_t must have greater than or equal to
32653265
* the number of bits as confNUMBER_OF_CORES. */
32663266
configASSERT( ( sizeof( UBaseType_t ) * taskBITS_PER_TYPE ) >= configNUMBER_OF_CORES );
32673267
}
3268-
#endif
3268+
#endif /* #if ( configUSE_CORE_AFFINITY == 1 ) && ( configNUMBER_OF_CORES > 1 ) */
32693269

32703270
xReturn = prvCreateIdleTasks();
32713271

0 commit comments

Comments
 (0)