diff --git a/src/modules/nRF24/nRF24.cpp b/src/modules/nRF24/nRF24.cpp index e8df4e13..135e75af 100644 --- a/src/modules/nRF24/nRF24.cpp +++ b/src/modules/nRF24/nRF24.cpp @@ -489,7 +489,7 @@ int16_t nRF24::setAutoAck(uint8_t pipeNum, bool autoAckOn){ } } -int16_t nRF24::setDataShaping(float sh) { +int16_t nRF24::setDataShaping(uint8_t sh) { // nRF24 is unable to set data shaping // this method is implemented only for PhysicalLayer compatibility (void)sh; diff --git a/src/modules/nRF24/nRF24.h b/src/modules/nRF24/nRF24.h index d41e683f..d1e7a8b3 100644 --- a/src/modules/nRF24/nRF24.h +++ b/src/modules/nRF24/nRF24.h @@ -453,7 +453,7 @@ class nRF24: public PhysicalLayer { \returns \ref status_codes */ - int16_t setDataShaping(float sh) override; + int16_t setDataShaping(uint8_t sh) override; /*! \brief Dummy encoding configuration method, to ensure PhysicalLayer compatibility.