[LR11x0] Pass scan config by const reference

This commit is contained in:
jgromes 2024-08-28 19:35:53 +02:00
parent 0e694f3985
commit d81d802076
2 changed files with 2 additions and 2 deletions

View file

@ -574,7 +574,7 @@ int16_t LR11x0::startChannelScan() {
return(this->startChannelScan(config)); return(this->startChannelScan(config));
} }
int16_t LR11x0::startChannelScan(ChannelScanConfig_t config) { int16_t LR11x0::startChannelScan(const ChannelScanConfig_t &config) {
// check active modem // check active modem
int16_t state = RADIOLIB_ERR_NONE; int16_t state = RADIOLIB_ERR_NONE;
uint8_t modem = RADIOLIB_LR11X0_PACKET_TYPE_NONE; uint8_t modem = RADIOLIB_LR11X0_PACKET_TYPE_NONE;

View file

@ -982,7 +982,7 @@ class LR11x0: public PhysicalLayer {
\param config CAD configuration structure. \param config CAD configuration structure.
\returns \ref status_codes \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 \brief Read the channel scan result