[SX126x] Pass scan config by const reference

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

View file

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

View file

@ -714,7 +714,7 @@ class SX126x: 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