From df7d1a99fe3638595776781e17d8ea0f1b9aab54 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 31 Oct 2022 20:17:05 +0100 Subject: [PATCH] [SX126x] Fixed incorrect method called from derived class (#599) --- src/modules/SX126x/SX1262.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/SX126x/SX1262.h b/src/modules/SX126x/SX1262.h index c33eaba9..fc6e221d 100644 --- a/src/modules/SX126x/SX1262.h +++ b/src/modules/SX126x/SX1262.h @@ -97,12 +97,13 @@ class SX1262: public SX126x { /*! \brief Sets output power. Allowed values are in range from -17 to 22 dBm. + This method is virtual to allow override from the SX1261 class. \param power Output power to be set in dBm. \returns \ref status_codes */ - int16_t setOutputPower(int8_t power); + virtual int16_t setOutputPower(int8_t power); #if !defined(RADIOLIB_GODMODE) private: