I hadn't realised that the function needs to be declared before it can be used, therefore moving the timerCallback()
above the line creating the timer solved the problem.
4 Likes
I hadn't realised that the function needs to be declared before it can be used, therefore moving the timerCallback()
above the line creating the timer solved the problem.