diff --git a/libraries/AP_Progmem/AP_Progmem_AVR.h b/libraries/AP_Progmem/AP_Progmem_AVR.h index befd3ee6d6..1f524a3bfb 100644 --- a/libraries/AP_Progmem/AP_Progmem_AVR.h +++ b/libraries/AP_Progmem/AP_Progmem_AVR.h @@ -14,6 +14,9 @@ typedef struct { char c; } prog_char_t; +#undef PROGMEM +#define PROGMEM __attribute__(( section(".progmem.data") )) + #undef PSTR /* Need const type for progmem - new for avr-gcc 4.6 */ #if __AVR__ && __GNUC__ == 4 && __GNUC_MINOR__ > 5