Browse files

compile with avr-gcc 4.6.1

had to add in const to a couple of definitions to get this to compile with the modern gcc

Signed-off-by: Scott Gustafson <scott@garlicsoftware.com>
  • Loading branch information...
1 parent 8e285d2 commit 7fc487737062c190db651f91bb26c7014911852c @scott-42 scott-42 committed Feb 28, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 firmware/WORLDcodes.c
  2. +2 −2 firmware/main.c
View
4 firmware/WORLDcodes.c
@@ -8226,7 +8226,7 @@ const struct IrCode code_eu139Code PROGMEM = {
////////////////////////////////////////////////////////////////
-const struct IrCode *NApowerCodes[] PROGMEM = {
+const struct IrCode * const NApowerCodes[] PROGMEM = {
#ifdef NA_CODES
&code_na000Code,
&code_na001Code,
@@ -8370,7 +8370,7 @@ const struct IrCode *NApowerCodes[] PROGMEM = {
#endif
};
-const struct IrCode *EUpowerCodes[] PROGMEM = {
+const struct IrCode * const EUpowerCodes[] PROGMEM = {
#ifdef EU_CODES
&code_eu000Code,
&code_eu001Code,
View
4 firmware/main.c
@@ -79,8 +79,8 @@ The hardware for this project is very simple:
-extern const PGM_P *NApowerCodes[] PROGMEM;
-extern const PGM_P *EUpowerCodes[] PROGMEM;
+extern const PGM_P * const NApowerCodes[] PROGMEM;
+extern const PGM_P * const EUpowerCodes[] PROGMEM;
extern const uint8_t num_NAcodes, num_EUcodes;

0 comments on commit 7fc4877

Please sign in to comment.