[SX126x] Pass scan config by const reference
This commit is contained in:
parent
d81d802076
commit
fa1760d0b1
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue