Ardunio code won't compile due to AVR PROGMEM changes
klyap opened this issue · comments
Need to change lines such as PROGMEM const char* weekString[]
to PROGMEM const char* const weekString[]
, otherwise, it'll report errors like:
error: variable 'weekString' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Thanks for your reporting.
I'll fix it in a few days!
PROGMEM const char* const weekString[] = {"", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
PROGMEM const char* const ampmString[] = {"AM", "PM"};
use this instead