diff --git a/src/protocols/FSK4/FSK4.cpp b/src/protocols/FSK4/FSK4.cpp index 785961df..7e2d737e 100644 --- a/src/protocols/FSK4/FSK4.cpp +++ b/src/protocols/FSK4/FSK4.cpp @@ -1,5 +1,4 @@ #include "FSK4.h" -#include #include #if !RADIOLIB_EXCLUDE_FSK4 @@ -113,12 +112,12 @@ int32_t FSK4Client::getRawShift(int32_t shift) { int32_t step = round(phyLayer->getFreqStep()); // check minimum shift value - if(abs(shift) < step / 2) { + if(RADIOLIB_ABS(shift) < step / 2) { return(0); } // round shift to multiples of frequency step size - if(abs(shift) % step < (step / 2)) { + if(RADIOLIB_ABS(shift) % step < (step / 2)) { return(shift / step); } if(shift < 0) {