Added guard to only compile Radio class when using RadioShield
This commit is contained in:
parent
15303ddcbf
commit
4f70c67175
2 changed files with 9 additions and 0 deletions
|
@ -77,6 +77,9 @@
|
||||||
#include "protocols/MQTT/MQTT.h"
|
#include "protocols/MQTT/MQTT.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// only create Radio class when using RadioShield
|
||||||
|
#ifdef RADIOLIB_RADIOSHIELD
|
||||||
|
|
||||||
// RadioShield pin definitions
|
// RadioShield pin definitions
|
||||||
#define RADIOSHIELD_CS_A 10
|
#define RADIOSHIELD_CS_A 10
|
||||||
#define RADIOSHIELD_RX_A 9
|
#define RADIOSHIELD_RX_A 9
|
||||||
|
@ -115,5 +118,6 @@ class Radio {
|
||||||
};
|
};
|
||||||
|
|
||||||
Radio RadioShield;
|
Radio RadioShield;
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -53,6 +53,11 @@
|
||||||
*/
|
*/
|
||||||
//#define RADIOLIB_GODMODE
|
//#define RADIOLIB_GODMODE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Uncomment to enable pre-defined modules when using RadioShield.
|
||||||
|
*/
|
||||||
|
//#define RADIOLIB_RADIOSHIELD
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following platforms do not support SoftwareSerial library.
|
* The following platforms do not support SoftwareSerial library.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue