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.33k stars 243 forks source link

Problem with OnEnable parameter of task definition #96

Closed intabits closed 4 years ago

intabits commented 4 years ago

Hi, I've just joined GitHub, just to post this. Sorry if this not the correct way to ask/report this issue.

In Arduino, my OnEnable handler is not being found. (first time I've tried it) I was typing in an example here to show you, when I saw the problem - I needed a forward definition for my OnEnable handler.

But the example 5 in the implementation scenarios fails in the same way as mine was. So now this is just to let you know that.

arkhipenko commented 4 years ago

I need more information and possibly the code. I can't help you based on what you sent. What is the chip you are compiling on? What are the compile options you are using? A code sample will be the best.

arkhipenko commented 4 years ago

But the example 5 in the implementation scenarios fails in the same way as mine was.

Example 5 was written before Arduino IDE started to require method forward definitions. It used to compile just fine. Regardless, I updated it and it compiles now.