[RF69] Reworked driver exclusion
This commit is contained in:
parent
67e36f4ed9
commit
984cfac319
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include "RF69.h"
|
#include "RF69.h"
|
||||||
|
#if !defined(RADIOLIB_EXCLUDE_RF69)
|
||||||
|
|
||||||
RF69::RF69(Module* module) : PhysicalLayer(RF69_FREQUENCY_STEP_SIZE, RF69_MAX_PACKET_LENGTH) {
|
RF69::RF69(Module* module) : PhysicalLayer(RF69_FREQUENCY_STEP_SIZE, RF69_MAX_PACKET_LENGTH) {
|
||||||
_mod = module;
|
_mod = module;
|
||||||
|
@ -836,3 +837,5 @@ void RF69::clearIRQFlags() {
|
||||||
_mod->SPIwriteRegister(RF69_REG_IRQ_FLAGS_1, 0b11111111);
|
_mod->SPIwriteRegister(RF69_REG_IRQ_FLAGS_1, 0b11111111);
|
||||||
_mod->SPIwriteRegister(RF69_REG_IRQ_FLAGS_2, 0b11111111);
|
_mod->SPIwriteRegister(RF69_REG_IRQ_FLAGS_2, 0b11111111);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef _RADIOLIB_RF69_H
|
#if !defined(_RADIOLIB_RF69_H) && !defined(RADIOLIB_EXCLUDE_RF69)
|
||||||
#define _RADIOLIB_RF69_H
|
#define _RADIOLIB_RF69_H
|
||||||
|
|
||||||
#include "../../TypeDef.h"
|
#include "../../TypeDef.h"
|
||||||
|
|
Loading…
Add table
Reference in a new issue