[AFSK] Reworked driver exclusion
This commit is contained in:
parent
0e120a760a
commit
6f6ff7d637
2 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include "AFSK.h"
|
#include "AFSK.h"
|
||||||
|
#if !defined(RADIOLIB_EXCLUDE_AFSK)
|
||||||
|
|
||||||
AFSKClient::AFSKClient(PhysicalLayer* phy, RADIOLIB_PIN_TYPE pin) {
|
AFSKClient::AFSKClient(PhysicalLayer* phy, RADIOLIB_PIN_TYPE pin) {
|
||||||
_phy = phy;
|
_phy = phy;
|
||||||
|
@ -23,3 +24,5 @@ int16_t AFSKClient::noTone() {
|
||||||
Module::noTone(_pin);
|
Module::noTone(_pin);
|
||||||
return(_phy->standby());
|
return(_phy->standby());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef _RADIOLIB_AFSK_H
|
#if !defined(_RADIOLIB_AFSK_H) && !defined(RADIOLIB_EXCLUDE_AFSK)
|
||||||
#define _RADIOLIB_AFSK_H
|
#define _RADIOLIB_AFSK_H
|
||||||
|
|
||||||
#include "../../TypeDef.h"
|
#include "../../TypeDef.h"
|
||||||
|
|
Loading…
Add table
Reference in a new issue