diff options
| -rw-r--r-- | host/lib/usrp/x300/x300_radio_ctrl_impl.cpp | 14 | 
1 files changed, 6 insertions, 8 deletions
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<bool>(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<bool>(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<bool>(tx_fe_path / _tx_fe_map.at(chan).db_fe_name / "enabled")                      .set(chan_active)                  ;              }  | 
