Skip to content

Commit eb5f4ad

Browse files
kuopinghsuCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 657932c commit eb5f4ad

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

include/FreeRTOS.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,11 @@
513513
#endif /* configUSE_CORE_AFFINITY */
514514

515515
#ifndef configUSE_SCHEDULER_CORE_MASK
516-
#define configUSE_SCHEDULER_CORE_MASK 1
516+
#if ( configNUMBER_OF_CORES > 1 )
517+
#define configUSE_SCHEDULER_CORE_MASK 1
518+
#else
519+
#define configUSE_SCHEDULER_CORE_MASK 0
520+
#endif
517521
#endif /* configUSE_SCHEDULER_CORE_MASK */
518522

519523
#if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) )

0 commit comments

Comments
 (0)