[CC1101] Reworked driver exlusion
This commit is contained in:
parent
4ad5261a83
commit
995d7054ef
2 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include "CC1101.h"
|
#include "CC1101.h"
|
||||||
|
#if !defined(RADIOLIB_EXCLUDE_CC1101)
|
||||||
|
|
||||||
CC1101::CC1101(Module* module) : PhysicalLayer(CC1101_FREQUENCY_STEP_SIZE, CC1101_MAX_PACKET_LENGTH) {
|
CC1101::CC1101(Module* module) : PhysicalLayer(CC1101_FREQUENCY_STEP_SIZE, CC1101_MAX_PACKET_LENGTH) {
|
||||||
_mod = module;
|
_mod = module;
|
||||||
|
@ -857,3 +858,5 @@ void CC1101::SPIsendCommand(uint8_t cmd) {
|
||||||
SPI.endTransaction();
|
SPI.endTransaction();
|
||||||
Module::digitalWrite(_mod->getCs(), HIGH);
|
Module::digitalWrite(_mod->getCs(), HIGH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef _RADIOLIB_CC1101_H
|
#if !defined(_RADIOLIB_CC1101_H) && !defined(RADIOLIB_EXCLUDE_CC1101)
|
||||||
#define _RADIOLIB_CC1101_H
|
#define _RADIOLIB_CC1101_H
|
||||||
|
|
||||||
#include "../../TypeDef.h"
|
#include "../../TypeDef.h"
|
||||||
|
|
Loading…
Add table
Reference in a new issue