aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-08-11 09:59:51 -0700
committerMartin Braun <martin.braun@ettus.com>2016-08-11 09:59:51 -0700
commitdc2cdb539314e6f0ab74d4bcb1cb3039de9975a9 (patch)
treefe910714721ec64cb2e19269915c1075086984c2
parent62898fc131b6dfa2e02aaf2df9564b0af6355bc8 (diff)
downloaduhd-dc2cdb539314e6f0ab74d4bcb1cb3039de9975a9.tar.gz
uhd-dc2cdb539314e6f0ab74d4bcb1cb3039de9975a9.tar.bz2
uhd-dc2cdb539314e6f0ab74d4bcb1cb3039de9975a9.zip
x300: Fixed typo in check_radio_config
-rw-r--r--host/lib/usrp/x300/x300_radio_ctrl_impl.cpp14
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)
;
}