From 482b962f79304aea1248f13907547ce7bef02d78 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 12 Mar 2023 15:03:16 +0100 Subject: [PATCH] [CC1101] Added missing standby overload --- src/modules/CC1101/CC1101.cpp | 5 +++++ src/modules/CC1101/CC1101.h | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/modules/CC1101/CC1101.cpp b/src/modules/CC1101/CC1101.cpp index 72824fce..06f42c10 100644 --- a/src/modules/CC1101/CC1101.cpp +++ b/src/modules/CC1101/CC1101.cpp @@ -166,6 +166,11 @@ int16_t CC1101::standby() { return(RADIOLIB_ERR_NONE); } +int16_t CC1101::standby(uint8_t mode) { + (void)mode; + return(standby()); +} + int16_t CC1101::transmitDirect(uint32_t frf) { return transmitDirect(true, frf); } diff --git a/src/modules/CC1101/CC1101.h b/src/modules/CC1101/CC1101.h index eb12b0be..3ecdcac2 100644 --- a/src/modules/CC1101/CC1101.h +++ b/src/modules/CC1101/CC1101.h @@ -111,7 +111,7 @@ // CC1101_REG_IOCFG0 #define RADIOLIB_CC1101_GDO0_TEMP_SENSOR_OFF 0b00000000 // 7 7 analog temperature sensor output: disabled (default) -#define RADIOLIB_CC1101_GDO0_TEMP_SENSOR_ON 0b10000000 // 7 0 enabled +#define RADIOLIB_CC1101_GDO0_TEMP_SENSOR_ON 0b10000000 // 7 7 enabled #define RADIOLIB_CC1101_GDO0_NORM 0b00000000 // 6 6 GDO0 output: active high (default) #define RADIOLIB_CC1101_GDO0_INV 0b01000000 // 6 6 active low @@ -591,6 +591,15 @@ class CC1101: public PhysicalLayer { */ int16_t standby() override; + /*! + \brief Sets the module to standby. + + \param mode Standby mode to be used. No effect, implemented only for PhysicalLayer compatibility. + + \returns \ref status_codes + */ + int16_t standby(uint8_t mode) override; + /*! \brief Starts direct mode transmission.