Skip to content

Commit

Permalink
Move reinitialize code before port end scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot committed Jan 4, 2024
1 parent bb0e959 commit ab0a0d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -3784,7 +3784,6 @@ void vTaskEndScheduler( void )
* layer must ensure interrupts enable bit is left in the correct state. */
portDISABLE_INTERRUPTS();
xSchedulerRunning = pdFALSE;
vPortEndScheduler();

#if ( configSUPPORT_REINITIALISE_INTERNAL_VARIABLES == 1 )
{
Expand All @@ -3805,6 +3804,8 @@ void vTaskEndScheduler( void )
}
#endif /* #if ( configSUPPORT_REINITIALISE_INTERNAL_VARIABLES == 1 ) */

vPortEndScheduler();

traceRETURN_vTaskEndScheduler();
}
/*----------------------------------------------------------*/
Expand Down

0 comments on commit ab0a0d9

Please sign in to comment.