[RFM9x] Reworked driver exclusion

This commit is contained in:
jgromes 2020-06-30 10:43:14 +02:00
parent e6657cf2f0
commit 04ea05c7ec
6 changed files with 12 additions and 3 deletions

View file

@ -1,4 +1,5 @@
#include "RFM95.h"
#if !defined(RADIOLIB_EXCLUDE_RFM9X)
RFM95::RFM95(Module* mod) : SX1278(mod) {
@ -47,3 +48,5 @@ int16_t RFM95::setFrequency(float freq) {
// set frequency
return(SX127x::setFrequencyRaw(freq));
}
#endif

View file

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

View file

@ -1,4 +1,5 @@
#include "RFM96.h"
#if !defined(RADIOLIB_EXCLUDE_RFM9X)
RFM96::RFM96(Module* mod) : SX1278(mod) {
@ -47,3 +48,5 @@ int16_t RFM96::setFrequency(float freq) {
// set frequency
return(SX127x::setFrequencyRaw(freq));
}
#endif

View file

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

View file

@ -1,4 +1,5 @@
#include "RFM97.h"
#if !defined(RADIOLIB_EXCLUDE_RFM9X)
RFM97::RFM97(Module* mod) : RFM95(mod) {
@ -37,3 +38,5 @@ int16_t RFM97::setSpreadingFactor(uint8_t sf) {
}
return(state);
}
#endif

View file

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