[SX128x] Fix check output power argument name

This commit is contained in:
jgromes 2024-05-25 07:13:31 +02:00
parent 8864a2a10a
commit 4a011e0915
2 changed files with 3 additions and 3 deletions
src/modules/SX128x

View file

@ -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;

View file

@ -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.