diff options
author | Derek Kozel <derek.kozel@ettus.com> | 2018-08-22 16:51:36 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-08-22 16:16:04 -0700 |
commit | e0e611aea74c30607397e70e79fbde023271a10f (patch) | |
tree | 256800a517d686b1db6abaa5b5d2ce4e78f3e880 /host | |
parent | d5c6e34bd3a9e63bfe661e2d8b38ceb85c4d6d18 (diff) | |
download | uhd-e0e611aea74c30607397e70e79fbde023271a10f.tar.gz uhd-e0e611aea74c30607397e70e79fbde023271a10f.tar.bz2 uhd-e0e611aea74c30607397e70e79fbde023271a10f.zip |
X300: Correctly initialize antenna mapping for TwinRX
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/x300/x300_radio_ctrl_impl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp index aca4a5f00..c81036962 100644 --- a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp +++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp @@ -715,8 +715,11 @@ void x300_radio_ctrl_impl::setup_radio( // We need a desired subscriber for antenna/value because the experts don't coerce that property. _tree->access<std::string>(db_path / "rx_frontends" / _rx_fe_map[i].db_fe_name / "antenna" / "value") .add_desired_subscriber(boost::bind(&x300_radio_ctrl_impl::_update_atr_leds, this, _1, i)); + _update_atr_leds(_tree->access<std::string> + (db_path / "rx_frontends" / _rx_fe_map[i].db_fe_name / "antenna" / "value").get(), i); + } else { + _update_atr_leds("", i); //init anyway, even if never called } - _update_atr_leds("", i); //init anyway, even if never called } } |