diff --git a/src/protocols/PhysicalLayer/PhysicalLayer.cpp b/src/protocols/PhysicalLayer/PhysicalLayer.cpp index a5cb9cfa..1a2c19f9 100644 --- a/src/protocols/PhysicalLayer/PhysicalLayer.cpp +++ b/src/protocols/PhysicalLayer/PhysicalLayer.cpp @@ -356,7 +356,7 @@ int16_t PhysicalLayer::startChannelScan() { return(RADIOLIB_ERR_UNSUPPORTED); } -int16_t PhysicalLayer::startChannelScan(ChannelScanConfig_t config) { +int16_t PhysicalLayer::startChannelScan(const ChannelScanConfig_t &config) { (void)config; return(RADIOLIB_ERR_UNSUPPORTED); } diff --git a/src/protocols/PhysicalLayer/PhysicalLayer.h b/src/protocols/PhysicalLayer/PhysicalLayer.h index 3e2dedd6..0920076a 100644 --- a/src/protocols/PhysicalLayer/PhysicalLayer.h +++ b/src/protocols/PhysicalLayer/PhysicalLayer.h @@ -490,7 +490,7 @@ class PhysicalLayer { \param config Scan configuration structure. Interpretation depends on currently active modem. \returns \ref status_codes */ - virtual int16_t startChannelScan(ChannelScanConfig_t config); + virtual int16_t startChannelScan(const ChannelScanConfig_t &config); /*! \brief Read the channel scan result