diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index 83f441b0..11f19193 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -1213,6 +1213,18 @@ uint8_t SX126x::random() { return(randByte); } +void SX126x::setDirectAction(void (*func)(void)) { + // SX126x is unable to perform direct mode reception + // this method is implemented only for PhysicalLayer compatibility + return(0); +} + +void SX126x::readBit(RADIOLIB_PIN_TYPE pin) { + // SX126x is unable to perform direct mode reception + // this method is implemented only for PhysicalLayer compatibility + return(0); +} + int16_t SX126x::setTCXO(float voltage, uint32_t delay) { // set mode to standby standby(); diff --git a/src/modules/SX126x/SX126x.h b/src/modules/SX126x/SX126x.h index 7ee07956..19a42ffc 100644 --- a/src/modules/SX126x/SX126x.h +++ b/src/modules/SX126x/SX126x.h @@ -887,6 +887,20 @@ class SX126x: public PhysicalLayer { */ uint8_t random(); + /*! + \brief Dummy method, to ensure PhysicalLayer compatibility. + + \param func Ignored. + */ + void setDirectAction(void (*func)(void)); + + /*! + \brief Dummy method, to ensure PhysicalLayer compatibility. + + \param pin Ignored. + */ + void readBit(RADIOLIB_PIN_TYPE pin); + #ifndef RADIOLIB_GODMODE protected: #endif