summaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-11-18 10:15:12 -0800
committerJosh Blum <josh@joshknows.com>2011-11-18 10:15:12 -0800
commite417d2f2f2a4e5ead7325cc38b04a5dc8cd4fa88 (patch)
tree31dc5d43e90577d145a553ce2b9b60f04e0e05aa /host/utils
parent65b6acc1ac877849eb6cbe1a654562ca22e42c07 (diff)
downloaduhd-e417d2f2f2a4e5ead7325cc38b04a5dc8cd4fa88.tar.gz
uhd-e417d2f2f2a4e5ead7325cc38b04a5dc8cd4fa88.tar.bz2
uhd-e417d2f2f2a4e5ead7325cc38b04a5dc8cd4fa88.zip
uhd: fixed mboard detection checks to the cal utils
Diffstat (limited to 'host/utils')
-rw-r--r--host/utils/usrp_cal_utils.hpp4
1 files changed, 2 insertions, 2 deletions
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<std::string>(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);
}