kopia lustrzana https://github.com/jgromes/RadioLib
[SX127x] Added missing standby for PhysicalLayer (#695)
rodzic
00bb31cb2e
commit
8ace6350cf
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue