From 9d99e38a43a9a86e08a7782fedc30d54a329140c Mon Sep 17 00:00:00 2001 From: jgromes Date: Wed, 28 Aug 2024 19:36:43 +0200 Subject: [PATCH] [PHY] Pass scan config by const reference --- src/protocols/PhysicalLayer/PhysicalLayer.cpp | 2 +- src/protocols/PhysicalLayer/PhysicalLayer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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