[LR11XX] Add missing override specifiers

This commit is contained in:
Linar Yusupov 2025-02-01 10:52:00 +03:00
parent 4deec953e8
commit 84a11b2f90
4 changed files with 19 additions and 4 deletions

View file

@ -105,7 +105,7 @@ class LR1110: public LR11x0 {
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.
\returns \ref status_codes \returns \ref status_codes
*/ */
int16_t setOutputPower(int8_t power, bool forceHighPower); int16_t setOutputPower(int8_t power, bool forceHighPower) override;
/*! /*!
\brief Check if output power is configurable. \brief Check if output power is configurable.
@ -124,7 +124,7 @@ class LR1110: public LR11x0 {
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.
\returns \ref status_codes \returns \ref status_codes
*/ */
int16_t checkOutputPower(int8_t power, int8_t* clipped, bool forceHighPower); int16_t checkOutputPower(int8_t power, int8_t* clipped, bool forceHighPower) override;
/*! /*!
\brief Set modem for the radio to use. Will perform full reset and reconfigure the radio \brief Set modem for the radio to use. Will perform full reset and reconfigure the radio

View file

@ -114,7 +114,7 @@ class LR1120: public LR11x0 {
Ignored when operating in 2.4 GHz band. Ignored when operating in 2.4 GHz band.
\returns \ref status_codes \returns \ref status_codes
*/ */
int16_t setOutputPower(int8_t power, bool forceHighPower); int16_t setOutputPower(int8_t power, bool forceHighPower) override;
/*! /*!
\brief Check if output power is configurable. \brief Check if output power is configurable.
@ -134,7 +134,7 @@ class LR1120: public LR11x0 {
Ignored when operating in 2.4 GHz band. Ignored when operating in 2.4 GHz band.
\returns \ref status_codes \returns \ref status_codes
*/ */
int16_t checkOutputPower(int8_t power, int8_t* clipped, bool forceHighPower); int16_t checkOutputPower(int8_t power, int8_t* clipped, bool forceHighPower) override;
/*! /*!
\brief Set modem for the radio to use. Will perform full reset and reconfigure the radio \brief Set modem for the radio to use. Will perform full reset and reconfigure the radio

View file

@ -253,12 +253,25 @@ int16_t PhysicalLayer::setOutputPower(int8_t power) {
return(RADIOLIB_ERR_UNSUPPORTED); return(RADIOLIB_ERR_UNSUPPORTED);
} }
int16_t PhysicalLayer::setOutputPower(int8_t power, bool forceHighPower) {
(void)power;
(void)forceHighPower;
return(RADIOLIB_ERR_UNSUPPORTED);
}
int16_t PhysicalLayer::checkOutputPower(int8_t power, int8_t* clipped) { int16_t PhysicalLayer::checkOutputPower(int8_t power, int8_t* clipped) {
(void)power; (void)power;
(void)clipped; (void)clipped;
return(RADIOLIB_ERR_UNSUPPORTED); return(RADIOLIB_ERR_UNSUPPORTED);
} }
int16_t PhysicalLayer::checkOutputPower(int8_t power, int8_t* clipped, bool forceHighPower) {
(void)power;
(void)clipped;
(void)forceHighPower;
return(RADIOLIB_ERR_UNSUPPORTED);
}
int16_t PhysicalLayer::setSyncWord(uint8_t* sync, size_t len) { int16_t PhysicalLayer::setSyncWord(uint8_t* sync, size_t len) {
(void)sync; (void)sync;
(void)len; (void)len;

View file

@ -372,6 +372,7 @@ class PhysicalLayer {
\returns \ref status_codes \returns \ref status_codes
*/ */
virtual int16_t setOutputPower(int8_t power); virtual int16_t setOutputPower(int8_t power);
virtual int16_t setOutputPower(int8_t power, bool forceHighPower);
/*! /*!
\brief Check if output power is configurable. Must be implemented in module class if the module supports it. \brief Check if output power is configurable. Must be implemented in module class if the module supports it.
@ -380,6 +381,7 @@ class PhysicalLayer {
\returns \ref status_codes \returns \ref status_codes
*/ */
virtual int16_t checkOutputPower(int8_t power, int8_t* clipped); virtual int16_t checkOutputPower(int8_t power, int8_t* clipped);
virtual int16_t checkOutputPower(int8_t power, int8_t* clipped, bool forceHighPower);
/*! /*!
\brief Set sync word. Must be implemented in module class if the module supports it. \brief Set sync word. Must be implemented in module class if the module supports it.