From 40eea86ffe6993eecb3ef97652009821f5b316a7 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Wed, 25 May 2011 20:46:31 -0700 Subject: [PATCH] Avoid spurious warnings --- RF24.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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)