[SX127x] Added missing standby for PhysicalLayer (#695)
This commit is contained in:
parent
00bb31cb2e
commit
8ace6350cf
2 changed files with 14 additions and 0 deletions
|
@ -289,6 +289,11 @@ int16_t 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) {
|
||||
// check modem
|
||||
if(getActiveModem() != RADIOLIB_SX127X_FSK_OOK) {
|
||||
|
|
|
@ -686,6 +686,15 @@ class SX127x: public PhysicalLayer {
|
|||
*/
|
||||
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).
|
||||
While in direct mode, the module will not be able to transmit or receive packets. Can only be activated in FSK mode.
|
||||
|
|
Loading…
Add table
Reference in a new issue