larsnordstrom / rush-osd-development

Automatically exported from code.google.com/p/rush-osd-development
0 stars 0 forks source link

Compile error in Arduino 1.6.5 #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
 1. Open KV_Team_OSD.ino with Arduino 1.6.5
 2. Compile

What is the exact brand and model of hardware you´r using?
 - Does not matter.

What is the expected output? What do you see instead?
 - I see compile error.
 - error: variable 'item_table' must be const in order to be put
 - into read-only section by means of '__attribute__((progmem))'
 - PROGMEM const char *item_table[] =
...

Solve problem:

Define variable item_table as const in KV_Team_OSD.cpp:
- PROGMEM char const* const item_table[] =

In KV_Team_OSD.h:
- extern PROGMEM char const* const item_table[];

Original issue reported on code.google.com by a.n.niko...@gmail.com on 21 Aug 2015 at 7:21