Go Down

Topic: Correction to PROGMEM tutorial (Read 1 time) previous topic - next topic


the PROGMEM tutorial has an error in it (or maybe it's due to a compiler bug.

Basically, this line:
PGM_P PROGMEM string_table[] =

needs to be changed to:
PGM_P string_table[] PROGMEM =

It won't work unless progmem comes after the array variable declaration the same way that the strings are declared in the preceeding lines. This wasted most of a morning before I discovered why it didn't work, so fixing it will prevent someone else from being stuck on the same problem.



Go Up