-
Notifications
You must be signed in to change notification settings - Fork 35
From Arduino version 1.6.6 got error: 'callBack' was not declared in this scope #6
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
Comments
This is because it seem that from Arduino 1.6.6 functions needs to be defined before using them as function pointers. For a quick fix you need to do define a function first like this: void callBack1(Task* me);
Task t1(2000, callBack1); If this is a permanent change in Arduino, than all documentation and all Example code needs to be updated accordingly. |
This issue will not be fixed in SoftTimer, rather we will wait Arduino to fix this issue in the compiler in later versions. |
That seems to be it, thanks. Of course now it can't find PciListener.h somewhere further down the line, but I'm guessing that's my issue. |
I have similar (and many) errors, after moving the Task t1(0, myLoop) below the function definition, as you have suggested, I cant get the PciListener to get included properly. |
In Debouncer.h there are two lines: //#include <PciListener.h> Switch which of these two is commented out, and PciListener.h gets included correctly. |
Finally I decided to fit all the examples of the SoftTimer to the current requirements of the Arduino compiler, as the authors does not seem to to solve this problem. |
From Arduino version 1.6.6 all previous codes, including all examples fails with a compiler error message like this: 'callBack' was not declared in this scope
The text was updated successfully, but these errors were encountered: