Hi.
I have been using version 1.8.8 until now.
Now got up to 1.8.13 and get a problem directly.
I have tried with version 1.8.9 and have the same problem.
Version 1.8.7 works.
I use SimpleTimer by Marcello Romani and it works very well.
The timer send a callback to a void function.
This function I have at the bottom in the main folder.
(Also tried at the top but same problem)
I include the SimpleTimer at the top in main folder.
I can call SimpleTimer from both main function and also from other function on other folders.
In version 1.8.8.
If I call it from another folder it works properly.
It can find the void function in main folder.
From version 1.8.9 and up I get "function was not declared in this scope"".
The error comes from the sub folder.
What have been changed from version 1.8.8 to 1.8.9?
Why can´t a sub folder find the void function i main folder anymore?
How can I get around this?
Here are a little bit of the code.
I hope that this can help you to fix my problems.
The code is much bigger, so I only give you an example.
code:
Declared at the top:
#include "SimpleTimer.h"
SimpleTimer g_timer;
Sends if a press a button:
g_timer.setTimer(500, BlinkLed_1_XTimes, 5);
At the end of main:
void BlinkLed_1_XTimes()
{
// do something
}
This is send from another folder function:
g_timer.setTimeout(2000, BlinkLed_1_XTimes;