All of a sudden, I am having problems with the Software Timers. The following code:
Timer timer(2000, doStuff);
void setup() {
timer.start();
}
void loop() {
}
void doStuff(){
//stuff goes here
}
Produces these errors:
/tmp/cc7wNzBN.ltrans0.ltrans.o: In function `invoke_timer':
/mnt/compile-service-shared-workspace/0_core__24_1/firmware/main/../wiring/inc/spark_wiring_timer.h:118: undefined reference to `os_timer_get_id'
/tmp/cc7wNzBN.ltrans0.ltrans.o: In function `__base_ctor ':
/mnt/compile-service-shared-workspace/0_core__24_1/firmware/main/../wiring/inc/spark_wiring_timer.h:34: undefined reference to `os_timer_create'
/tmp/cc7wNzBN.ltrans20.ltrans.o: In function `_stop':
/mnt/compile-service-shared-workspace/0_core__24_1/firmware/main/../wiring/inc/spark_wiring_timer.h:70: undefined reference to `os_timer_change'
/tmp/cc7wNzBN.ltrans20.ltrans.o: In function `dispose':
/mnt/compile-service-shared-workspace/0_core__24_1/firmware/main/../wiring/inc/spark_wiring_timer.h:91: undefined reference to `os_timer_destroy'
collect2: error: ld returned 1 exit status
make[1]: *** [fa5725fab7a94fbb1ecc19d9ce447af663914dd693ad4563958d53e0a9c9.elf] Error 1
make: *** [main] Error 2
What is going on?