diff --git a/src/protocols/PhysicalLayer/PhysicalLayer.cpp b/src/protocols/PhysicalLayer/PhysicalLayer.cpp index ccd61ce0..4036f67f 100644 --- a/src/protocols/PhysicalLayer/PhysicalLayer.cpp +++ b/src/protocols/PhysicalLayer/PhysicalLayer.cpp @@ -175,6 +175,10 @@ int16_t PhysicalLayer::finishTransmit() { return(RADIOLIB_ERR_UNSUPPORTED); } +int16_t PhysicalLayer::finishReceive() { + return(RADIOLIB_ERR_UNSUPPORTED); +} + #if defined(RADIOLIB_BUILD_ARDUINO) int16_t PhysicalLayer::readData(String& str, size_t len) { int16_t state = RADIOLIB_ERR_NONE; diff --git a/src/protocols/PhysicalLayer/PhysicalLayer.h b/src/protocols/PhysicalLayer/PhysicalLayer.h index 433590c4..f61c6434 100644 --- a/src/protocols/PhysicalLayer/PhysicalLayer.h +++ b/src/protocols/PhysicalLayer/PhysicalLayer.h @@ -364,6 +364,12 @@ class PhysicalLayer { */ virtual int16_t finishTransmit(); + /*! + \brief Clean up after reception is done. + \returns \ref status_codes + */ + virtual int16_t finishReceive(); + #if defined(RADIOLIB_BUILD_ARDUINO) /*! \brief Reads data that was received after calling startReceive method.