diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-01-18 16:27:10 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-18 16:28:32 -0800 |
commit | 30468de1f4477d2c6bbb14e901216b96ecdcfd3b (patch) | |
tree | 937b652fe1c12ebe613f5bcde026396b4aaaf559 /host/lib | |
parent | 3a995b35532307930e2a999c551ffa2ab17ffbe6 (diff) | |
download | uhd-30468de1f4477d2c6bbb14e901216b96ecdcfd3b.tar.gz uhd-30468de1f4477d2c6bbb14e901216b96ecdcfd3b.tar.bz2 uhd-30468de1f4477d2c6bbb14e901216b96ecdcfd3b.zip |
mg: Remove superfluous DEBUG message, minor formatting
Fixed indents to 4 spaces in get_?x_lo_source().
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 22 |
1 files changed, 12 insertions, 10 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 51010ac1f..1d7627370 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -592,17 +592,18 @@ const std::string magnesium_radio_ctrl_impl::get_rx_lo_source( const std::string &name, const size_t chan ) { - if (not _master) { + if (not _master) { const fs_path master_rx_fe_path = master_fe_base_path(_radio_slot) / fs_path("rx_frontends") / chan; UHD_LOG_DEBUG(unique_id(), "Slave getting lo source"); - return _tree->access<std::string>(master_rx_fe_path / "los" / name /"source"/"value").get(); + return _tree->access<std::string>( + master_rx_fe_path / "los" / name /"source" / "value" + ).get(); } - UHD_LOG_DEBUG(unique_id(),"Master getting lo source"); if (name == MAGNESIUM_LO1){ //TODO: should we use this from cache? - return _ad9371->get_lo_source(RX_DIRECTION); - } + return _ad9371->get_lo_source(RX_DIRECTION); + } return "internal"; } @@ -742,17 +743,18 @@ const std::string magnesium_radio_ctrl_impl::get_tx_lo_source( const std::string &name, const size_t chan ) { - if (not _master) { + if (not _master) { const fs_path master_tx_fe_path = master_fe_base_path(_radio_slot) / fs_path("tx_frontends") / chan; UHD_LOG_DEBUG(unique_id(), "Slave getting lo source"); - return _tree->access<std::string>(master_tx_fe_path / "los" / name /"source"/"value").get(); + return _tree->access<std::string>( + master_tx_fe_path / "los" / name /"source" / "value" + ).get(); } - UHD_LOG_DEBUG(unique_id(),"Master getting lo source"); if (name == MAGNESIUM_LO1){ //TODO: should we use this from cache? - return _ad9371->get_lo_source(TX_DIRECTION); - } + return _ad9371->get_lo_source(TX_DIRECTION); + } return "internal"; } |