From d81d8020766d6870697354656aabc26ed3115459 Mon Sep 17 00:00:00 2001 From: jgromes Date: Wed, 28 Aug 2024 19:35:53 +0200 Subject: [PATCH] [LR11x0] Pass scan config by const reference --- src/modules/LR11x0/LR11x0.cpp | 2 +- src/modules/LR11x0/LR11x0.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/LR11x0/LR11x0.cpp b/src/modules/LR11x0/LR11x0.cpp index c51e7af9..e0f9d733 100644 --- a/src/modules/LR11x0/LR11x0.cpp +++ b/src/modules/LR11x0/LR11x0.cpp @@ -574,7 +574,7 @@ int16_t LR11x0::startChannelScan() { return(this->startChannelScan(config)); } -int16_t LR11x0::startChannelScan(ChannelScanConfig_t config) { +int16_t LR11x0::startChannelScan(const ChannelScanConfig_t &config) { // check active modem int16_t state = RADIOLIB_ERR_NONE; uint8_t modem = RADIOLIB_LR11X0_PACKET_TYPE_NONE; diff --git a/src/modules/LR11x0/LR11x0.h b/src/modules/LR11x0/LR11x0.h index d7cf2d2a..5677ac46 100644 --- a/src/modules/LR11x0/LR11x0.h +++ b/src/modules/LR11x0/LR11x0.h @@ -982,7 +982,7 @@ class LR11x0: public PhysicalLayer { \param config CAD configuration structure. \returns \ref status_codes */ - int16_t startChannelScan(ChannelScanConfig_t config) override; + int16_t startChannelScan(const ChannelScanConfig_t &config) override; /*! \brief Read the channel scan result