diff --git a/RF24.cpp b/RF24.cpp index 4cad18f..db39bea 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -18,6 +18,12 @@ #define IF_SERIAL_DEBUG(x) #endif +// Avoid spurious warnings +#undef PROGMEM +#define PROGMEM __attribute__(( section(".progmem.data") )) +#undef PSTR +#define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];})) + /******************************************************************/ void RF24::csn(int mode)