So, I've got a pointer in an timer CTC interrupt ISR(TIMER0_COMPA_vect)
static const unsigned char *timing_pointer = brightness_timings;
pointing to a constant array of chars
const unsigned char brightness_timings[MAX_BRIGHTNESS+1] = {blah blah blah}
and I'm setting OCR0A (compare register for timer 0, an 8-bit register) during its interrupt:
OCR0A = timing_pointer++;
When I compile with avr-gcc (4.8.2) I get this warning for that instruction:
assignment makes integer from pointer without a cast
I don't see any integers anywhere... can anyone tell me why this is happening?