From 2a9e0828b8de5628160d24549478fd570ad494f7 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 28 Jun 2012 00:12:21 -0700 Subject: cal: fix for else/ifs in uhd cal utils --- host/utils/usrp_cal_utils.hpp | 8 ++++---- 1 file 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{ -- cgit v1.2.3