From 92c19da05891853ab9bae70968575585339de944 Mon Sep 17 00:00:00 2001 From: jgromes <jgromes@users.noreply.github.com> Date: Mon, 6 Jul 2020 08:53:29 +0200 Subject: [PATCH] [nRF24] Changed shaping datatype to uint8_t --- src/modules/nRF24/nRF24.cpp | 2 +- src/modules/nRF24/nRF24.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.