diff --git a/src/protocols/AFSK/AFSK.cpp b/src/protocols/AFSK/AFSK.cpp index e2a90641..6cf64ac9 100644 --- a/src/protocols/AFSK/AFSK.cpp +++ b/src/protocols/AFSK/AFSK.cpp @@ -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 diff --git a/src/protocols/AFSK/AFSK.h b/src/protocols/AFSK/AFSK.h index c5c71221..c487dd17 100644 --- a/src/protocols/AFSK/AFSK.h +++ b/src/protocols/AFSK/AFSK.h @@ -1,4 +1,4 @@ -#ifndef _RADIOLIB_AFSK_H +#if !defined(_RADIOLIB_AFSK_H) && !defined(RADIOLIB_EXCLUDE_AFSK) #define _RADIOLIB_AFSK_H #include "../../TypeDef.h"