[SX128x] Fix check output power argument name

pull/1108/head
jgromes 2024-05-25 07:13:31 +02:00
rodzic 8864a2a10a
commit 4a011e0915
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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