Jomelo / LCDMenuLib2

Create a tree menu. Use it with different lcd types / console output / ssh console.
MIT License
249 stars 47 forks source link

How to detect when function is running like in version 1 #27

Closed dragoblaztr closed 6 years ago

dragoblaztr commented 6 years ago

How do you do to know with scheduler library you suggested to know if is a function running or not? that was very useful and I can't find a function like that on these library (Task Scheduler).

thanks in advance

Jomelo commented 6 years ago

Hi, i have add two new examples:

The TaskScheduler Library have a method "isEnabled()" to check if a task is enabled. The method can only be called on a task object.

if(t1.isEnabled() == true) { // ....

dragoblaztr commented 6 years ago

Thank you, that was so helpful.