[PHY] Pass scan config by const reference

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

View file

@ -356,7 +356,7 @@ int16_t PhysicalLayer::startChannelScan() {
return(RADIOLIB_ERR_UNSUPPORTED);
}
int16_t PhysicalLayer::startChannelScan(ChannelScanConfig_t config) {
int16_t PhysicalLayer::startChannelScan(const ChannelScanConfig_t &config) {
(void)config;
return(RADIOLIB_ERR_UNSUPPORTED);
}

View file

@ -490,7 +490,7 @@ class PhysicalLayer {
\param config Scan configuration structure. Interpretation depends on currently active modem.
\returns \ref status_codes
*/
virtual int16_t startChannelScan(ChannelScanConfig_t config);
virtual int16_t startChannelScan(const ChannelScanConfig_t &config);
/*!
\brief Read the channel scan result