From dc2cdb539314e6f0ab74d4bcb1cb3039de9975a9 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 11 Aug 2016 09:59:51 -0700 Subject: x300: Fixed typo in check_radio_config --- host/lib/usrp/x300/x300_radio_ctrl_impl.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'host') diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp index 1d268623c..6a4ed8cf5 100644 --- a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp +++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp @@ -862,9 +862,8 @@ bool x300_radio_ctrl_impl::check_radio_config() const fs_path rx_fe_path = fs_path("dboards" / _radio_slot / "rx_frontends"); for (size_t chan = 0; chan < _get_num_radios(); chan++) { if (_tree->exists(rx_fe_path / _rx_fe_map.at(chan).db_fe_name / "enabled")) { - const bool chan_active = _is_streamer_active(RX_DIRECTION, chan); - if (chan_active) - { + const bool chan_active = _is_streamer_active(uhd::RX_DIRECTION, chan); + if (chan_active) { _tree->access(rx_fe_path / _rx_fe_map.at(chan).db_fe_name / "enabled") .set(chan_active) ; @@ -874,11 +873,10 @@ bool x300_radio_ctrl_impl::check_radio_config() const fs_path tx_fe_path = fs_path("dboards" / _radio_slot / "tx_frontends"); for (size_t chan = 0; chan < _get_num_radios(); chan++) { - if (_tree->exists(tx_fe_path / _rx_fe_map.at(chan).db_fe_name / "enabled")) { - const bool chan_active = _is_streamer_active(TX_DIRECTION, chan); - if (chan_active) - { - _tree->access(tx_fe_path / _rx_fe_map.at(chan).db_fe_name / "enabled") + if (_tree->exists(tx_fe_path / _tx_fe_map.at(chan).db_fe_name / "enabled")) { + const bool chan_active = _is_streamer_active(uhd::TX_DIRECTION, chan); + if (chan_active) { + _tree->access(tx_fe_path / _tx_fe_map.at(chan).db_fe_name / "enabled") .set(chan_active) ; } -- cgit v1.2.3