[CC1101] Added missing standby overload
This commit is contained in:
parent
a4df77b76e
commit
482b962f79
2 changed files with 15 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue