Added guard to only compile Radio class when using RadioShield

This commit is contained in:
jgromes 2019-11-23 15:34:19 +01:00
parent 15303ddcbf
commit 4f70c67175
2 changed files with 9 additions and 0 deletions

View file

@ -77,6 +77,9 @@
#include "protocols/MQTT/MQTT.h"
#endif
// only create Radio class when using RadioShield
#ifdef RADIOLIB_RADIOSHIELD
// RadioShield pin definitions
#define RADIOSHIELD_CS_A 10
#define RADIOSHIELD_RX_A 9
@ -115,5 +118,6 @@ class Radio {
};
Radio RadioShield;
#endif
#endif

View file

@ -53,6 +53,11 @@
*/
//#define RADIOLIB_GODMODE
/*
* Uncomment to enable pre-defined modules when using RadioShield.
*/
//#define RADIOLIB_RADIOSHIELD
/*
* The following platforms do not support SoftwareSerial library.
*/