[SOLVED] Strange behaviour

Earlier today I compiled and flashed firmware to my Core with this line:

unsigned long _currentTime = millis();

Now - with no changes (just coming back after dinner to work on it), I get:

Button.cpp:17:39: error: ‘millis’ was not declared in this scope.

What gives? Go easy on me, I’m new to C++…


cms, very recenlty the Spark team removed pre-processing of sketchs. What that means is you now have to include #include "application.h" at the top of your include file (.h) if you have one or at the top of your single file (no separate library files).

Try it and let me know if that helps. :smile:


Ah, perfect. Thanks! I'll remember that one from now on....


1 Like

Hey @cms–marking this thread as “solved”. Let me know if you need any more assistance!

Will @ Spark