diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-04-06 18:37:22 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-04-09 08:55:08 -0700 |
commit | 58fd9f8fa8b235ca19819a880bedaaf41918ea30 (patch) | |
tree | 9d2ef5e97076356d97e564b20510c54533eeee4e | |
parent | d4eaee390db2fefd4564b6054d8d066c437d8cff (diff) | |
download | uhd-58fd9f8fa8b235ca19819a880bedaaf41918ea30.tar.gz uhd-58fd9f8fa8b235ca19819a880bedaaf41918ea30.tar.bz2 uhd-58fd9f8fa8b235ca19819a880bedaaf41918ea30.zip |
fixup! mg: fix compiler warnings
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 20 |
1 files changed, 10 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 05f7b48a6..625e56eba 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -513,15 +513,15 @@ void magnesium_radio_ctrl_impl::set_rx_lo_source( const std::string &name, const size_t /*chan*/ ) { - UHD_LOG_TRACE(unique_id(),"Attempting to set rx LO." <<"LO "<<name<<" to "<<src); //TODO: checking what options are there std::lock_guard<std::mutex> l(_set_lock); - UHD_LOG_TRACE(unique_id(), "Set LO source." <<"LO "<<name<<" to "<<src); + UHD_LOG_TRACE(unique_id(), "Setting RX LO " << name << " to " << src); - if (name == MAGNESIUM_LO1){ + if (name == MAGNESIUM_LO1) { _ad9371->set_lo_source(src, RX_DIRECTION); - }else{ - UHD_LOG_ERROR(unique_id(), "This LO " <<name <<" does not support set_lo_source to "<< src); + } else { + UHD_LOG_ERROR(unique_id(), + "RX LO " << name << " does not support setting source to " << src); } } @@ -636,14 +636,14 @@ void magnesium_radio_ctrl_impl::set_tx_lo_source( const std::string &name, const size_t /*chan*/ ) { - UHD_LOG_TRACE(unique_id(), "Attempting to set tx LO." <<"LO "<<name<<" to "<<src << " at "<<chan); //TODO: checking what options are there std::lock_guard<std::mutex> l(_set_lock); - UHD_LOG_TRACE(unique_id(), "Set LO source." <<"LO "<<name<<" to "<<src << " at "<<chan); - if (name == MAGNESIUM_LO1){ + UHD_LOG_TRACE(unique_id(), "Setting TX LO " << name << " to " << src); + if (name == MAGNESIUM_LO1) { _ad9371->set_lo_source(src, TX_DIRECTION); - }else{ - UHD_LOG_ERROR(unique_id(), "This LO " <<name <<" does not support set_lo_source to "<< src); + } else { + UHD_LOG_ERROR(unique_id(), + "TX LO " << name << " does not support setting source to " << src); } } |