From 6e368622e2897c35e87610d143a782100123fc6c Mon Sep 17 00:00:00 2001 From: Marc Majoral Date: Mon, 30 May 2022 09:02:22 +0200 Subject: [PATCH] Prefer initialization to assignment in constructors --- .../signal_source/adapters/ad9361_fpga_signal_source.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc b/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc index 131c9235c..4138c038d 100644 --- a/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc +++ b/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc @@ -60,6 +60,7 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(const ConfigurationInterface *con rf_gain_rx1_(configuration->property(role + ".gain_rx1", default_manual_gain_rx1)), rf_gain_rx2_(configuration->property(role + ".gain_rx2", default_manual_gain_rx2)), freq0_(configuration->property(role + ".freq", 0)), + freq1_(configuration->property(role + ".freq1", static_cast(GPS_L5_FREQ_HZ))), sample_rate_(configuration->property(role + ".sampling_frequency", default_bandwidth)), bandwidth_(configuration->property(role + ".bandwidth", default_bandwidth)), samples_to_skip_(0), @@ -100,8 +101,8 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(const ConfigurationInterface *con if (freq0_ == 0) { + // use ".freq0" freq0_ = configuration->property(role + ".freq0", static_cast(GPS_L1_FREQ_HZ)); - freq1_ = configuration->property(role + ".freq1", static_cast(GPS_L5_FREQ_HZ)); } if (filter_auto_)