kopia lustrzana https://github.com/jgromes/RadioLib
[SX128x] Fix check output power argument name
rodzic
8864a2a10a
commit
4a011e0915
|
@ -785,7 +785,7 @@ int16_t SX128x::setCodingRate(uint8_t cr, bool longInterleaving) {
|
||||||
|
|
||||||
int16_t SX128x::setOutputPower(int8_t pwr) {
|
int16_t SX128x::setOutputPower(int8_t pwr) {
|
||||||
// check if power value is configurable
|
// check if power value is configurable
|
||||||
int16_t state = checkOutputPower(power, NULL);
|
int16_t state = checkOutputPower(pwr, NULL);
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
|
|
||||||
this->power = pwr + 18;
|
this->power = pwr + 18;
|
||||||
|
|
|
@ -630,11 +630,11 @@ class SX128x: public PhysicalLayer {
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Check if output power is configurable.
|
\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.
|
\param clipped Clipped output power value to what is possible within the module's range.
|
||||||
\returns \ref status_codes
|
\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.
|
\brief Sets preamble length for currently active modem. Allowed values range from 1 to 65535.
|
||||||
|
|
Ładowanie…
Reference in New Issue