[SX127x] Added missing standby for PhysicalLayer (#695)

This commit is contained in:
jgromes 2023-03-12 14:50:14 +01:00
parent 00bb31cb2e
commit 8ace6350cf
2 changed files with 14 additions and 0 deletions

View file

@ -289,6 +289,11 @@ int16_t SX127x::standby() {
return(setMode(RADIOLIB_SX127X_STANDBY)); return(setMode(RADIOLIB_SX127X_STANDBY));
} }
int16_t SX127x::standby(uint8_t mode) {
(void)mode;
return(standby());
}
int16_t SX127x::transmitDirect(uint32_t frf) { int16_t SX127x::transmitDirect(uint32_t frf) {
// check modem // check modem
if(getActiveModem() != RADIOLIB_SX127X_FSK_OOK) { if(getActiveModem() != RADIOLIB_SX127X_FSK_OOK) {

View file

@ -686,6 +686,15 @@ class SX127x: public PhysicalLayer {
*/ */
int16_t standby() override; int16_t standby() override;
/*!
\brief Sets the %LoRa 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 Enables direct transmission mode on pins DIO1 (clock) and DIO2 (data). \brief Enables direct transmission mode on pins DIO1 (clock) and DIO2 (data).
While in direct mode, the module will not be able to transmit or receive packets. Can only be activated in FSK mode. While in direct mode, the module will not be able to transmit or receive packets. Can only be activated in FSK mode.