Ticker

02 Dec 2011

I've seen tickers used outside the the while(1) loop but when I run it; it does nothing unless it is in the while(1) loop. Any ideas on what could be causing this. For the time of the ticker I use a defined variable of around 8000 so the code looks like:

sample.attach(&do_stuff,1/variable);

What could be causing this?

02 Dec 2011

Have you done an integer division, and ended up with a period of 0?