arkhipenko / TaskScheduler

Cooperative multitasking for Arduino, ESPx, STM32, nRF and other microcontrollers
http://playground.arduino.cc/Code/TaskScheduler
BSD 3-Clause "New" or "Revised" License
1.26k stars 230 forks source link

Question on Time Critical #49

Closed wmarchewka closed 6 years ago

wmarchewka commented 6 years ago

Great library! Makes my code so modular. But i have a question on Time Critical. I am running Scheduler_example09_TimeCritical and I have modified it by removing the random delay. But i still get start delayed showing up as 1 at random intervals, it is mostly 0, and never more than one. Would that be considered jitter? i am using a ESP8266.

arkhipenko commented 6 years ago

For time critical applications, could you please try running with #define _TASK_SLEEP_ON_IDLE_RUN commented out?

wmarchewka commented 6 years ago

That fixed the issue. Thank you.