File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -894,7 +894,7 @@ static void prvYieldForTask( TCB_t * pxTCB,
894894 if ( pxTCB -> xTaskRunState == taskTASK_NOT_RUNNING )
895895 {
896896 #if ( configUSE_CORE_AFFINITY == 1 )
897- if ( ( pxTCB -> uxCoreAffinityMask & ( 1 << xCoreID ) ) == 1 )
897+ if ( ( pxTCB -> uxCoreAffinityMask & ( 1 << xCoreID ) ) != 0 )
898898 #endif
899899 {
900900 /* If the task is not being executed by any core swap it in */
@@ -911,7 +911,7 @@ static void prvYieldForTask( TCB_t * pxTCB,
911911 {
912912 configASSERT ( ( pxTCB -> xTaskRunState == xCoreID ) || ( pxTCB -> xTaskRunState == taskTASK_YIELDING ) );
913913 #if ( configUSE_CORE_AFFINITY == 1 )
914- if ( ( pxTCB -> uxCoreAffinityMask & ( 1 << xCoreID ) ) == 1 )
914+ if ( ( pxTCB -> uxCoreAffinityMask & ( 1 << xCoreID ) ) != 0 )
915915 #endif
916916 {
917917 /* The task is already running on this core, mark it as scheduled */
You can’t perform that action at this time.
0 commit comments