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