Answer the question
In order to leave comments, you need to log in
How to set multiple types for callback in C++?
I use the SimpleTimer library for arduino. The callback is void. I constantly have a need to create a crutch like
int foo() {.....}
void bar() {
foo();
}
Answer the question
In order to leave comments, you need to log in
It is forbidden. Yes, and it's useless. The bar() function must be of type timer_callback, while the foo() function can be of any kind.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question