[SX128x] Pass scan config by const reference

This commit is contained in:
jgromes 2024-08-28 19:36:21 +02:00
parent fa1760d0b1
commit d5987ac22e
2 changed files with 2 additions and 2 deletions

View file

@ -690,7 +690,7 @@ int16_t SX128x::startChannelScan() {
return(this->startChannelScan(config));
}
int16_t SX128x::startChannelScan(ChannelScanConfig_t config) {
int16_t SX128x::startChannelScan(const ChannelScanConfig_t &config) {
// check active modem
if(getPacketType() != RADIOLIB_SX128X_PACKET_TYPE_LORA) {
return(RADIOLIB_ERR_WRONG_MODEM);

View file

@ -616,7 +616,7 @@ class SX128x: 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