[SX1262] Fixed allowed output power range (-9 dBm minimum).

This commit is contained in:
jgromes 2022-11-06 22:51:21 +01:00
parent df7d1a99fe
commit 5efdeedd67
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ int16_t SX1262::setFrequency(float freq, bool calibrate) {
}
int16_t SX1262::setOutputPower(int8_t power) {
RADIOLIB_CHECK_RANGE(power, -17, 22, RADIOLIB_ERR_INVALID_OUTPUT_POWER);
RADIOLIB_CHECK_RANGE(power, -9, 22, RADIOLIB_ERR_INVALID_OUTPUT_POWER);
// get current OCP configuration
uint8_t ocp = 0;

View file

@ -96,7 +96,7 @@ class SX1262: public SX126x {
int16_t setFrequency(float freq, bool calibrate);
/*!
\brief Sets output power. Allowed values are in range from -17 to 22 dBm.
\brief Sets output power. Allowed values are in range from -9 to 22 dBm.
This method is virtual to allow override from the SX1261 class.
\param power Output power to be set in dBm.