Error: 'SysInterrupt_TIM2_Update' was not declared in this scope

Hello,

I am using SparkIntervalTimer.h in Particle Dev and it complies fine but in the online version it creates an error when I am trying to flash. A big red box showed up with this message and a button "CREATE ISSUE" on Git:

This looks like an error in SparkIntervalTimer library. Would you like to create an issue on GitHub to let the author know?
SparkIntervalTimer/SparkIntervalTimer.h:121:30: error: 'SysInterrupt_TIM2_Update' was not declared in this scope
if (!attachSystemInterrupt(SysInterrupt_TIM2_Update, Wiring_TIM2_Interrupt_Handler_override)) ; //error

Any suggestions what I am doing wrong?

@MarkusL, are you compiling for a Core or a Photon (assuming you selected your device)? I’ll test on DEV tonight as well.

@peekay123 this is for Core

@MarkusL, I just compiled the example app on the web IDE without error. However, I did have to remove the blank line before the #include "SparkIntervalTimer/SparkIntervalTimer.h" line. The pre-processor is finicky at times. :wink:

@peekay123, thanks - removing the first line solved the issue - weird.

1 Like