diff options
author | Josh Blum <josh@joshknows.com> | 2012-06-28 00:12:21 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-06-28 00:12:21 -0700 |
commit | 2a9e0828b8de5628160d24549478fd570ad494f7 (patch) | |
tree | cfbf0c659f4f6a8871314f5124794a979303cee6 /host | |
parent | 6e40f097ed1ae1aea87ef80b073a36a06fbafe1f (diff) | |
download | uhd-2a9e0828b8de5628160d24549478fd570ad494f7.tar.gz uhd-2a9e0828b8de5628160d24549478fd570ad494f7.tar.bz2 uhd-2a9e0828b8de5628160d24549478fd570ad494f7.zip |
cal: fix for else/ifs in uhd cal utils
Diffstat (limited to 'host')
-rw-r--r-- | host/utils/usrp_cal_utils.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/utils/usrp_cal_utils.hpp b/host/utils/usrp_cal_utils.hpp index 26c140d27..364b68bbe 100644 --- a/host/utils/usrp_cal_utils.hpp +++ b/host/utils/usrp_cal_utils.hpp @@ -71,10 +71,10 @@ static inline void set_optimum_defaults(uhd::usrp::multi_usrp::sptr usrp){ if (tx_name.find("WBX") != std::string::npos){ usrp->set_tx_gain(0); } - if (tx_name.find("SBX") != std::string::npos){ + else if (tx_name.find("SBX") != std::string::npos){ usrp->set_tx_gain(0); } - if (tx_name.find("RFX") != std::string::npos){ + else if (tx_name.find("RFX") != std::string::npos){ usrp->set_tx_gain(0); } else{ @@ -86,10 +86,10 @@ static inline void set_optimum_defaults(uhd::usrp::multi_usrp::sptr usrp){ if (rx_name.find("WBX") != std::string::npos){ usrp->set_rx_gain(25); } - if (rx_name.find("SBX") != std::string::npos){ + else if (rx_name.find("SBX") != std::string::npos){ usrp->set_rx_gain(25); } - if (rx_name.find("RFX") != std::string::npos){ + else if (rx_name.find("RFX") != std::string::npos){ usrp->set_rx_gain(25); } else{ |