mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
Better initialization for Fpga_dynamic_bit_selection constructor
This commit is contained in:
parent
acf80198af
commit
c498809bfb
@ -27,14 +27,15 @@
|
||||
#include <sys/mman.h> // for mmap
|
||||
|
||||
Fpga_dynamic_bit_selection::Fpga_dynamic_bit_selection(bool enable_rx1_band, bool enable_rx2_band)
|
||||
: d_enable_rx1_band(enable_rx1_band), d_enable_rx2_band(enable_rx2_band)
|
||||
: d_map_base_freq_band_1(nullptr),
|
||||
d_map_base_freq_band_2(nullptr),
|
||||
d_dev_descr_freq_band_1(0),
|
||||
d_dev_descr_freq_band_2(0),
|
||||
d_shift_out_bits_freq_band_1(0),
|
||||
d_shift_out_bits_freq_band_2(0),
|
||||
d_enable_rx1_band(enable_rx1_band),
|
||||
d_enable_rx2_band(enable_rx2_band)
|
||||
{
|
||||
d_map_base_freq_band_1 = nullptr;
|
||||
d_map_base_freq_band_2 = nullptr;
|
||||
d_dev_descr_freq_band_1 = 0;
|
||||
d_dev_descr_freq_band_2 = 0;
|
||||
d_shift_out_bits_freq_band_1 = 0;
|
||||
d_shift_out_bits_freq_band_2 = 0;
|
||||
if (d_enable_rx1_band)
|
||||
{
|
||||
open_device(&d_map_base_freq_band_1, d_dev_descr_freq_band_1, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user