diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index 7be655d6..31baba13 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -944,11 +944,11 @@ int16_t SX127x::setOokPeakThresholdDecrement(uint8_t value) { } int16_t SX127x::enableBitSync() { - return(_mod->SPIsetRegValue(SX127X_REG_OOK_PEAK, SX127X_BIT_SYNC_ON, 5, 5, 5)); + return(_mod->SPIsetRegValue(RADIOLIB_SX127X_REG_OOK_PEAK, RADIOLIB_SX127X_BIT_SYNC_ON, 5, 5, 5)); } int16_t SX127x::disableBitSync() { - return(_mod->SPIsetRegValue(SX127X_REG_OOK_PEAK, SX127X_BIT_SYNC_OFF, 5, 5, 5)); + return(_mod->SPIsetRegValue(RADIOLIB_SX127X_REG_OOK_PEAK, RADIOLIB_SX127X_BIT_SYNC_OFF, 5, 5, 5)); } int16_t SX127x::setOOK(bool enableOOK) { diff --git a/src/modules/SX127x/SX127x.h b/src/modules/SX127x/SX127x.h index 30ca62ca..e37c498d 100644 --- a/src/modules/SX127x/SX127x.h +++ b/src/modules/SX127x/SX127x.h @@ -914,7 +914,7 @@ class SX127x: public PhysicalLayer { /*! \brief Period of decrement of the RSSI threshold in the OOK demodulator. - \param value Use defines SX127X_OOK_PEAK_THRESH_DEC_X_X_CHIP + \param value Use defines RADIOLIB_SX127X_OOK_PEAK_THRESH_DEC_X_X_CHIP \returns \ref status_codes */ @@ -923,7 +923,7 @@ class SX127x: public PhysicalLayer { /*! \brief Fixed threshold for the Data Slicer in OOK mode or floor threshold for the Data Slicer in OOK when Peak mode is used. - \param value The actual value is devided by 2 because (0.5db step). ie: value=12 means 6dB + \param value Threshold level in steps of 0.5 dB. \returns \ref status_codes */