diff --git a/src/modules/nRF24/nRF24.cpp b/src/modules/nRF24/nRF24.cpp index 725e9265..14f9a943 100644 --- a/src/modules/nRF24/nRF24.cpp +++ b/src/modules/nRF24/nRF24.cpp @@ -473,6 +473,20 @@ int16_t nRF24::setAutoAck(uint8_t pipeNum, bool autoAckOn){ } } +int16_t nRF24::setDataShaping(float sh) { + // nRF24 is unable to set data shaping + // this method is implemented only for PhysicalLayer compatibility + (void)sh; + return(ERR_NONE); +} + +int16_t nRF24::setEncoding(uint8_t encoding) { + // nRF24 is unable to set encoding + // this method is implemented only for PhysicalLayer compatibility + (void)encoding; + return(ERR_NONE); +} + void nRF24::clearIRQ() { // clear status bits _mod->SPIsetRegValue(NRF24_REG_STATUS, NRF24_RX_DR | NRF24_TX_DS | NRF24_MAX_RT, 6, 4); diff --git a/src/modules/nRF24/nRF24.h b/src/modules/nRF24/nRF24.h index e7e536b5..6eafc342 100644 --- a/src/modules/nRF24/nRF24.h +++ b/src/modules/nRF24/nRF24.h @@ -440,6 +440,24 @@ class nRF24: public PhysicalLayer { */ int16_t setAutoAck(uint8_t pipeNum, bool autoAckOn = true); + /*! + \brief Dummy data shaping configuration method, to ensure PhysicalLayer compatibility. + + \param sh Ignored. + + \returns \ref status_codes + */ + int16_t setDataShaping(float sh); + + /*! + \brief Dummy encoding configuration method, to ensure PhysicalLayer compatibility. + + \param sh Ignored. + + \returns \ref status_codes + */ + int16_t setEncoding(uint8_t encoding); + #ifndef RADIOLIB_GODMODE private: #endif