diff options
author | Josh Blum <josh@joshknows.com> | 2011-11-18 10:15:12 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-18 10:15:12 -0800 |
commit | e417d2f2f2a4e5ead7325cc38b04a5dc8cd4fa88 (patch) | |
tree | 31dc5d43e90577d145a553ce2b9b60f04e0e05aa /host | |
parent | 65b6acc1ac877849eb6cbe1a654562ca22e42c07 (diff) | |
download | uhd-e417d2f2f2a4e5ead7325cc38b04a5dc8cd4fa88.tar.gz uhd-e417d2f2f2a4e5ead7325cc38b04a5dc8cd4fa88.tar.bz2 uhd-e417d2f2f2a4e5ead7325cc38b04a5dc8cd4fa88.zip |
uhd: fixed mboard detection checks to the cal utils
Diffstat (limited to 'host')
-rw-r--r-- | host/utils/usrp_cal_utils.hpp | 4 |
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); } |