Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ardunio code won't compile due to AVR PROGMEM changes #3

Open
klyap opened this issue Mar 22, 2016 · 2 comments
Open

Ardunio code won't compile due to AVR PROGMEM changes #3

klyap opened this issue Mar 22, 2016 · 2 comments

Comments

@klyap
Copy link

klyap commented Mar 22, 2016

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

@godstale
Copy link
Owner

Thanks for your reporting.
I'll fix it in a few days!

@VrajChariot
Copy link

PROGMEM const char* const weekString[] = {"", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
PROGMEM const char* const ampmString[] = {"AM", "PM"};

use this instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants