-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extern millis declaration #84
Comments
Would it also help if I moved this declaration into TaskScheduler.h file, which must only be included once? |
declare it using extern in a .h file and implement it in only a single .cpp file. Something like this...
extern unsigned long micros(void);
extern unsigned long millis(void);
#include "some.h"
unsigned long micros(void) { .... }
unsigned long millis(void) { .... } This allows the .h file to be included as much as you like. |
I can't have any .cpp files in the library due to the way Arduino IDE handles external |
Could you please check if the version I just pushed into "testing" branch solves the issue? |
I had the same issue but the testing branch version solved the compilation errors for me. |
Pushed into master as 3.1.2 |
Thank you this has now been solved. |
I get the follow error with later versions of TaskScheduler/esp:
I assume this would be solved by wrapping them as follows in the TaskSchedulerDeclarations file (but have not tested this).
The text was updated successfully, but these errors were encountered: