Hi everybody. I'm using Scheduler.h library in Arduino Due for multitasking(execute many functions at the same time) by using Sheduler.startLoop(func). I need to stop a loop when i call Sheduler.stopLoop(func) but there is not Sheduler.stopLoop(func) in Scheduler.h. How can i modify Scheduler.h library for my purpose? Thanks.
Can you not have the function called by startLoop() check a variable and return immediately if it set to true/false/whatever ? Set the variable to the appropriate value to stop the function running.