Skip to content

Commit cfb3416

Browse files
authored
Merge branch 'main' into main
2 parents 635c629 + 78c8bbd commit cfb3416

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

portable/MSVC-MingW/port.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,12 @@ BaseType_t xPortStartScheduler( void )
353353
pxThreadState = ( ThreadState_t * ) *( ( size_t * ) pxCurrentTCB );
354354
ulCriticalNesting = portNO_CRITICAL_NESTING;
355355

356-
/* Start the first task. */
357-
ResumeThread( pxThreadState->pvThread );
358-
359356
/* The scheduler is now running. */
360357
xPortRunning = pdTRUE;
361358

359+
/* Start the first task. */
360+
ResumeThread( pxThreadState->pvThread );
361+
362362
/* Handle all simulated interrupts - including yield requests and
363363
* simulated ticks. */
364364
prvProcessSimulatedInterrupts();

0 commit comments

Comments
 (0)