[SX1231] Reworked driver exclusion

This commit is contained in:
jgromes 2020-06-30 10:43:26 +02:00
parent 04ea05c7ec
commit 893d8a905f
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "SX1231.h"
#if !defined(RADIOLIB_EXCLUDE_RF69)
SX1231::SX1231(Module* mod) : RF69(mod) {
@ -92,3 +93,5 @@ int16_t SX1231::begin(float freq, float br, float rxBw, float freqDev, int8_t po
return(ERR_NONE);
}
#endif

View file

@ -1,4 +1,4 @@
#ifndef _RADIOLIB_SX1231_H
#if !defined(_RADIOLIB_SX1231_H) && !defined(RADIOLIB_EXCLUDE_RF69)
#define _RADIOLIB_SX1231_H
#include "../../TypeDef.h"