for (int i = 0; i < 8; ++i) //run through the timerarray
{
for (int n = 0; i < 25; ++n)
{
if(timerArray[i].times[n] == (0 || 1) )
{
//do something here
}
}
}
Thanks for the replies. I was so sure the problem was with the struct and not a simple error in my IF statement!
Since you've all been so helpful any chance of a pointer on my next problem?
The timerArray struct is hogging lots of RAM. I'm struggling to understand PROGMEM usage. How to I store this struct into progmem OR eeprom and retrieve it again?