Go Down

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

Hans de Ruiter

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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131