diff options
author | michael-west <michael.west@ettus.com> | 2018-12-19 16:58:13 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2018-12-19 17:42:53 -0800 |
commit | bc71cd5c3961a214b2dc771ad0074d305026a2a8 (patch) | |
tree | 8b21e793bfe8bdb5ef828fcd8f3acb38846af281 | |
parent | 639f3b3f3c636c9a62fa89fa887ac1890e8f1826 (diff) | |
download | uhd-bc71cd5c3961a214b2dc771ad0074d305026a2a8.tar.gz uhd-bc71cd5c3961a214b2dc771ad0074d305026a2a8.tar.bz2 uhd-bc71cd5c3961a214b2dc771ad0074d305026a2a8.zip |
N310 E320: Add initialization of TX bandwidth
- Fixes "Error: map::at" errors (during calls to get_tx_bandwidth())
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp | 2 | ||||
-rw-r--r-- | host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp index 7df3e888c..901bb1474 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp @@ -94,6 +94,7 @@ void magnesium_radio_ctrl_impl::_init_defaults() radio_ctrl_impl::set_tx_frequency(MAGNESIUM_DEFAULT_FREQ, chan); radio_ctrl_impl::set_tx_gain(0, chan); radio_ctrl_impl::set_tx_antenna(MAGNESIUM_DEFAULT_TX_ANTENNA, chan); + radio_ctrl_impl::set_tx_bandwidth(MAGNESIUM_DEFAULT_BANDWIDTH, chan); } @@ -861,4 +862,3 @@ void magnesium_radio_ctrl_impl::_init_mpm_sensors( ; } } - diff --git a/host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp b/host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp index 877ca8c6e..c71fd0169 100644 --- a/host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp +++ b/host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp @@ -74,6 +74,7 @@ void neon_radio_ctrl_impl::_init_defaults() radio_ctrl_impl::set_tx_frequency(NEON_DEFAULT_FREQ, chan); radio_ctrl_impl::set_tx_gain(NEON_DEFAULT_GAIN, chan); radio_ctrl_impl::set_tx_antenna(NEON_DEFAULT_TX_ANTENNA, chan); + radio_ctrl_impl::set_tx_bandwidth(NEON_DEFAULT_BANDWIDTH, chan); } /** Update default SPP (overwrites the default value from the XML file) **/ @@ -495,4 +496,3 @@ void neon_radio_ctrl_impl::_init_mpm_sensors( ; } } - |