From 30468de1f4477d2c6bbb14e901216b96ecdcfd3b Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 18 Jan 2018 16:27:10 -0800 Subject: mg: Remove superfluous DEBUG message, minor formatting Fixed indents to 4 spaces in get_?x_lo_source(). --- .../dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'host/lib') 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(master_rx_fe_path / "los" / name /"source"/"value").get(); + return _tree->access( + 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(master_tx_fe_path / "los" / name /"source"/"value").get(); + return _tree->access( + 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"; } -- cgit v1.2.3