Permalink
Browse files

BUGFIX: avr-gcc 4.7.0 actually cares about __progmem__ being const-only

- all-time favorite C kill-a-brain-cell mistake and fix, const * const
instead of const *. Never ceases to amuse me, in a very, very bitter
way.
  • Loading branch information...
1 parent ff8faea commit 924620c32ff519929e185eadd61cf74262adad5d @csdexter committed Apr 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Si4735.cpp
View
@@ -250,7 +250,7 @@ const char Si4735_PTY2Text_S_Personality[] PROGMEM = "Personality";
const char Si4735_PTY2Text_S_Public[] PROGMEM = "Public";
const char Si4735_PTY2Text_S_College[] PROGMEM = "College";
-const char * Si4735_PTY2Text_EU[32] PROGMEM = {
+const char * const Si4735_PTY2Text_EU[32] PROGMEM = {
Si4735_PTY2Text_S_None,
Si4735_PTY2Text_S_News,
Si4735_PTY2Text_S_Current,
@@ -283,7 +283,7 @@ const char * Si4735_PTY2Text_EU[32] PROGMEM = {
Si4735_PTY2Text_S_Documentary,
Si4735_PTY2Text_S_EmergencyTest,
Si4735_PTY2Text_S_Emergency};
-const char * Si4735_PTY2Text_US[32] PROGMEM = {
+const char * const Si4735_PTY2Text_US[32] PROGMEM = {
Si4735_PTY2Text_S_None,
Si4735_PTY2Text_S_News,
Si4735_PTY2Text_S_Information,

0 comments on commit 924620c

Please sign in to comment.