diff --git a/FreeRTOS/Source/tasks.c b/FreeRTOS/Source/tasks.c index 6bdf13c4f..0dcb621b1 100644 --- a/FreeRTOS/Source/tasks.c +++ b/FreeRTOS/Source/tasks.c @@ -1606,6 +1606,9 @@ implementations require configUSE_TICKLESS_IDLE to be set to a value other than void vTaskStepTick( portTickType xTicksToJump ) { + /* Correct the tick count value after a period during which the tick + was suppressed. Note this does *not* call the tick hook function for + each stepped tick. */ configASSERT( ( xTickCount + xTicksToJump ) <= xNextTaskUnblockTime ); xTickCount += xTicksToJump; }