Avoid spurious warnings
This commit is contained in:
parent
badc86cfe0
commit
40eea86ffe
6
RF24.cpp
6
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)
|
||||
|
|
Loading…
Reference in New Issue