From 4a011e0915450eeb813f065331dd515beb7c33fb Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 25 May 2024 07:13:31 +0200 Subject: [PATCH] [SX128x] Fix check output power argument name --- src/modules/SX128x/SX128x.cpp | 2 +- src/modules/SX128x/SX128x.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/SX128x/SX128x.cpp b/src/modules/SX128x/SX128x.cpp index 3132f26f..f35ccc26 100644 --- a/src/modules/SX128x/SX128x.cpp +++ b/src/modules/SX128x/SX128x.cpp @@ -785,7 +785,7 @@ int16_t SX128x::setCodingRate(uint8_t cr, bool longInterleaving) { int16_t SX128x::setOutputPower(int8_t pwr) { // check if power value is configurable - int16_t state = checkOutputPower(power, NULL); + int16_t state = checkOutputPower(pwr, NULL); RADIOLIB_ASSERT(state); this->power = pwr + 18; diff --git a/src/modules/SX128x/SX128x.h b/src/modules/SX128x/SX128x.h index 706cc627..1a35228c 100644 --- a/src/modules/SX128x/SX128x.h +++ b/src/modules/SX128x/SX128x.h @@ -630,11 +630,11 @@ class SX128x: public PhysicalLayer { /*! \brief Check if output power is configurable. - \param power Output power in dBm. + \param pwr Output power in dBm. \param clipped Clipped output power value to what is possible within the module's range. \returns \ref status_codes */ - int16_t checkOutputPower(int8_t power, int8_t* clipped) override; + int16_t checkOutputPower(int8_t pwr, int8_t* clipped) override; /*! \brief Sets preamble length for currently active modem. Allowed values range from 1 to 65535.