diff options
author | Trung Tran <trung.tran@ettus.com> | 2018-10-04 16:09:32 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-10-04 16:55:08 -0700 |
commit | 2a4bf0197c1c980e15eca7b8f4e4f4e4043b5eb1 (patch) | |
tree | fd633b81c1c96ce840cf1d3f03b4af7d1d28f7f2 /host/lib/usrp/dboard | |
parent | 72a21ba84cffc04e3af178c4e9c7cb59f49b6520 (diff) | |
download | uhd-2a4bf0197c1c980e15eca7b8f4e4f4e4043b5eb1.tar.gz uhd-2a4bf0197c1c980e15eca7b8f4e4f4e4043b5eb1.tar.bz2 uhd-2a4bf0197c1c980e15eca7b8f4e4f4e4043b5eb1.zip |
mg: fixup set_rx_antenna
After going to 2 radios configuration (FPGA), the channnel value
is passed into this set_rx_antenna now have value either 0 or 1.
We want the mapping of {radio_channel:cpld_channel} = {0:CHAN1} or {1:CHAN2}.
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp index d27531a2b..952cebdf8 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -199,7 +199,7 @@ void magnesium_radio_ctrl_impl::set_rx_antenna( UHD_LOG_TRACE(unique_id(), "Setting RX antenna to " << ant << " for chan " << chan); magnesium_cpld_ctrl::chan_sel_t chan_sel = - chan ? magnesium_cpld_ctrl::CHAN1 : magnesium_cpld_ctrl::CHAN2; + chan == 0 ? magnesium_cpld_ctrl::CHAN1 : magnesium_cpld_ctrl::CHAN2; _update_atr_switches(chan_sel, RX_DIRECTION, ant); radio_ctrl_impl::set_rx_antenna(ant, chan); |