MsTimer2 not working /w delay in func overflow

Hi,

I'd like to launch a function periodically that uses timer2 overflow

I've found the lib Arduino Playground - MsTimer2
It perfectly works (I've just added some defined for my 328P)

However, in the flash() function of the example, if i put a delay(3000), it doesn't work any more... In fact flash() function is launched one time and that's all (the led switches on and ever switches off)

Any idea on how i can have a function overflow (flash() there) that takes several seconds (around 30 sec in my case) ?

I really don't know what to change in MsTimer2 to make it work...

Thanks

Well thanks to chroos on IRC, it works now, I had to add interrupts() in the ISR routine, that is flash()

Sooo good