[LR11x0] Fix virtual method hiding (#679)
This commit is contained in:
parent
7bb747fdba
commit
4a6e182789
2 changed files with 12 additions and 2 deletions
|
@ -48,6 +48,10 @@ int16_t LR1110::setFrequency(float freq, bool calibrate, float band) {
|
||||||
return(LR11x0::setRfFrequency((uint32_t)(freq*1000000.0f)));
|
return(LR11x0::setRfFrequency((uint32_t)(freq*1000000.0f)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int16_t LR1110::setOutputPower(int8_t power) {
|
||||||
|
return(this->setOutputPower(power, false));
|
||||||
|
}
|
||||||
|
|
||||||
int16_t LR1110::setOutputPower(int8_t power, bool forceHighPower) {
|
int16_t LR1110::setOutputPower(int8_t power, bool forceHighPower) {
|
||||||
// determine whether to use HP or LP PA and check range accordingly
|
// determine whether to use HP or LP PA and check range accordingly
|
||||||
bool useHp = forceHighPower || (power > 14);
|
bool useHp = forceHighPower || (power > 14);
|
||||||
|
|
|
@ -74,15 +74,21 @@ class LR1110: public LR11x0 {
|
||||||
*/
|
*/
|
||||||
int16_t setFrequency(float freq, bool calibrate, float band = 4);
|
int16_t setFrequency(float freq, bool calibrate, float band = 4);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Sets output power. Allowed values are in range from -9 to 22 dBm (high-power PA) or -17 to 14 dBm (low-power PA).
|
||||||
|
\param power Output power to be set in dBm, output PA is determined automatically preferring the low-power PA.
|
||||||
|
\returns \ref status_codes
|
||||||
|
*/
|
||||||
|
int16_t setOutputPower(int8_t power);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Sets output power. Allowed values are in range from -9 to 22 dBm (high-power PA) or -17 to 14 dBm (low-power PA).
|
\brief Sets output power. Allowed values are in range from -9 to 22 dBm (high-power PA) or -17 to 14 dBm (low-power PA).
|
||||||
\param power Output power to be set in dBm.
|
\param power Output power to be set in dBm.
|
||||||
\param forceHighPower Force using the high-power PA. If set to false, PA will be determined automatically
|
\param forceHighPower Force using the high-power PA. If set to false, PA will be determined automatically
|
||||||
based on configured output power, preferring the low-power PA. If set to true, only high-power PA will be used.
|
based on configured output power, preferring the low-power PA. If set to true, only high-power PA will be used.
|
||||||
Defaults to false.
|
|
||||||
\returns \ref status_codes
|
\returns \ref status_codes
|
||||||
*/
|
*/
|
||||||
int16_t setOutputPower(int8_t power, bool forceHighPower = false);
|
int16_t setOutputPower(int8_t power, bool forceHighPower);
|
||||||
|
|
||||||
#if !RADIOLIB_GODMODE
|
#if !RADIOLIB_GODMODE
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Reference in a new issue