[AFSK] Reworked driver exclusion

This commit is contained in:
jgromes 2020-06-30 10:44:48 +02:00
parent 0e120a760a
commit 6f6ff7d637
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "AFSK.h"
#if !defined(RADIOLIB_EXCLUDE_AFSK)
AFSKClient::AFSKClient(PhysicalLayer* phy, RADIOLIB_PIN_TYPE pin) {
_phy = phy;
@ -23,3 +24,5 @@ int16_t AFSKClient::noTone() {
Module::noTone(_pin);
return(_phy->standby());
}
#endif

View file

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