Skip to content

Commit 16bc35c

Browse files
alfred2gAlfred Gedeon
andauthored
Fix: Comment - xTaskIncrementTick loop - to adhere to demo requirement (#162)
Co-authored-by: Alfred Gedeon <[email protected]>
1 parent 2f14899 commit 16bc35c

File tree

1 file changed

+8
-5
lines changed
  • portable/ThirdParty/GCC/Posix

1 file changed

+8
-5
lines changed

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,15 @@ uint64_t xExpectedTicks;
366366

367367
/* Tick Increment, accounting for any lost signals or drift in
368368
* the timer. */
369-
xExpectedTicks = (prvGetTimeNs() - prvStartTimeNs)
370-
/ (portTICK_RATE_MICROSECONDS * 1000);
371-
do {
369+
/*
370+
* Comment code to adjust timing according to full demo requirements
371+
* xExpectedTicks = (prvGetTimeNs() - prvStartTimeNs)
372+
* / (portTICK_RATE_MICROSECONDS * 1000);
373+
* do { */
372374
xTaskIncrementTick();
373-
prvTickCount++;
374-
} while (prvTickCount < xExpectedTicks);
375+
/* prvTickCount++;
376+
* } while (prvTickCount < xExpectedTicks);
377+
*/
375378

376379
#if ( configUSE_PREEMPTION == 1 )
377380
/* Select Next Task. */

0 commit comments

Comments
 (0)