aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/magnesium/magnesium_radio_control_init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_radio_control_init.cpp')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_radio_control_init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_control_init.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_control_init.cpp
index d9bf5c3d2..82da7ec75 100644
--- a/host/lib/usrp/dboard/magnesium/magnesium_radio_control_init.cpp
+++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_control_init.cpp
@@ -51,13 +51,13 @@ void magnesium_radio_control_impl::_init_defaults()
if (block_args.has_key("tx_gain_profile")) {
RFNOC_LOG_INFO("Using user specified TX gain profile: " << block_args.get(
"tx_gain_profile"));
- _gain_profile[TX_DIRECTION] = block_args.get("tx_gain_profile");
+ set_tx_gain_profile(block_args.get("tx_gain_profile"), 0);
}
if (block_args.has_key("rx_gain_profile")) {
RFNOC_LOG_INFO("Using user specified RX gain profile: " << block_args.get(
"rx_gain_profile"));
- _gain_profile[RX_DIRECTION] = block_args.get("rx_gain_profile");
+ set_rx_gain_profile(block_args.get("rx_gain_profile"), 0);
}
if (block_args.has_key("rx_band_map")) {