Avoid spurious warnings

This commit is contained in:
maniacbug 2011-05-25 20:46:31 -07:00
parent badc86cfe0
commit 40eea86ffe
1 changed files with 6 additions and 0 deletions

View File

@ -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)