godstale / retrowatch

Retro watch is open source smart watch project using Arduino and Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ardunio code won't compile due to AVR PROGMEM changes

klyap opened this issue · comments

commented

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))'

Arduino wiki for AVR PROGMEM errors

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