Closed JustinMartinDev closed 6 years ago
When you are in interrupt handler (timerCallback), it kind of stops the main thread automatically. Instead of executing loop()
it starts to execute timerCallback()
and does not return back to loop()
until timerCallback finished.
The actual execution will be something like this
void timerCallback(){
//pause the main thread
controller.run(); //check timing and calls all of the SensorThread.run() methods
//resume the main thread
}
This is how timer(or any others) interrupts work. If this is not the desired behavior, nothing can be done here.
Yes indeed, I had forgotten that was not a real parallelism :smile:. So that works nice
Thank you
Hello,
I would like to do somethings like that :
Do you think it's possible ?