diff --git a/src/protocols/APRS/APRS.cpp b/src/protocols/APRS/APRS.cpp index 7f4976b0..3d812bc8 100644 --- a/src/protocols/APRS/APRS.cpp +++ b/src/protocols/APRS/APRS.cpp @@ -1,4 +1,5 @@ #include "APRS.h" +#if !defined(RADIOLIB_EXCLUDE_APRS) APRSClient::APRSClient(AX25Client* ax) { _ax = ax; @@ -225,3 +226,5 @@ int16_t APRSClient::sendFrame(char* destCallsign, uint8_t destSSID, char* info) return(_ax->sendFrame(&frameUI)); } + +#endif diff --git a/src/protocols/Pager/Pager.cpp b/src/protocols/Pager/Pager.cpp index 144903a2..01fbbe98 100644 --- a/src/protocols/Pager/Pager.cpp +++ b/src/protocols/Pager/Pager.cpp @@ -1,4 +1,5 @@ #include "Pager.h" +#if !defined(RADIOLIB_EXCLUDE_PAGER) // this is a massive hack, but we need a global-scope ISR to manage the bit reading // let's hope nobody ever tries running two POCSAG receivers at the same time @@ -731,3 +732,5 @@ uint32_t PagerClient::encodeBCH(uint32_t dat) { return(iResult); } + +#endif