Skip to content

Commit

Permalink
Remove const qualifier from xCoreID local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
felixvanoost committed Dec 22, 2024
1 parent 6f06046 commit 54c5a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -3868,7 +3868,7 @@ void vTaskSuspendAll( void )
* uxSchedulerSuspended since that will prevent context switches. */
ulState = portSET_INTERRUPT_MASK();

const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();
BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();

/* This must never be called from inside a critical section. */
configASSERT( portGET_CRITICAL_NESTING_COUNT( xCoreID ) == 0 );
Expand Down

0 comments on commit 54c5a96

Please sign in to comment.