From e417d2f2f2a4e5ead7325cc38b04a5dc8cd4fa88 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 18 Nov 2011 10:15:12 -0800 Subject: uhd: fixed mboard detection checks to the cal utils --- host/utils/usrp_cal_utils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/utils/usrp_cal_utils.hpp b/host/utils/usrp_cal_utils.hpp index 0faaf9a84..71951c361 100644 --- a/host/utils/usrp_cal_utils.hpp +++ b/host/utils/usrp_cal_utils.hpp @@ -50,7 +50,7 @@ static inline void set_optimum_defaults(uhd::usrp::multi_usrp::sptr usrp){ const uhd::fs_path mb_path = "/mboards/0"; const std::string mb_name = tree->access(mb_path / "name").get(); - if (mb_name.find("USRP2") != std::string::npos){ + if (mb_name.find("USRP2") != std::string::npos or mb_name.find("N200") != std::string::npos or mb_name.find("N210") != std::string::npos){ usrp->set_tx_rate(12.5e6); usrp->set_rx_rate(12.5e6); } @@ -58,7 +58,7 @@ static inline void set_optimum_defaults(uhd::usrp::multi_usrp::sptr usrp){ usrp->set_tx_rate(4e6); usrp->set_rx_rate(4e6); } - else if (mb_name.find("E10") != std::string::npos){ + else if (mb_name.find("E100") != std::string::npos or mb_name.find("E110") != std::string::npos){ usrp->set_tx_rate(4e6); usrp->set_rx_rate(8e6); } -- cgit v1.2.3