Adding support to B205mini*
This commit is contained in:
parent
cfcd34b06e
commit
619f601f5a
|
@ -4,6 +4,7 @@
|
|||
*
|
||||
* Copyright 2010-2011 Free Software Foundation, Inc.
|
||||
* Copyright 2014 Ettus Research LLC
|
||||
* Patched by FlUxIuS @ Penthertz SAS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -236,7 +237,7 @@ bool UHDDevice::parse_dev_type()
|
|||
{
|
||||
std::string mboard_str, dev_str;
|
||||
uhd::property_tree::sptr prop_tree;
|
||||
size_t usrp2_str, b200_str, b210_str, x300_str, x310_str;
|
||||
size_t usrp2_str, b200_str, b210_str, x300_str, x310_str, b205mini_str;
|
||||
|
||||
prop_tree = usrp_dev->get_device()->get_tree();
|
||||
dev_str = prop_tree->access<std::string>("/name").get();
|
||||
|
@ -244,12 +245,15 @@ bool UHDDevice::parse_dev_type()
|
|||
|
||||
usrp2_str = dev_str.find("USRP2");
|
||||
b200_str = mboard_str.find("B200");
|
||||
b205mini_str = mboard_str.find("B205mini");
|
||||
b210_str = mboard_str.find("B210");
|
||||
x300_str = mboard_str.find("X300");
|
||||
x310_str = mboard_str.find("X310");
|
||||
|
||||
if (b200_str != std::string::npos) {
|
||||
dev_type = B2XX;
|
||||
} else if (b205mini_str != std::string::npos) {
|
||||
dev_type = B2XX;
|
||||
} else if (b210_str != std::string::npos) {
|
||||
dev_type = B2XX;
|
||||
} else if (usrp2_str != std::string::npos) {
|
||||
|
|
Loading…
Reference in New Issue