From a0b808e158e75369cfe6f4c97224952664939fdd Mon Sep 17 00:00:00 2001 From: michael-west Date: Mon, 4 May 2015 15:14:32 -0700 Subject: B200: Made find function properly ignore missing "product" value (BUG #770) --- host/lib/usrp/b200/b200_impl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 2b423afa5..feb5a2d04 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -174,10 +174,8 @@ static device_addrs_t b200_find(const device_addr_t &hint) new_addr["product"] = B2X0_STR_NAMES[get_b200_type(mb_eeprom)]; } catch (const uhd::runtime_error &e) { // No problem if this fails -- this is just device discovery, after all. - UHD_MSG(error) << e.what() << std::endl; - // Skip this loop. - continue; } + //this is a found b200 when the hint serial and name match or blank if ( (not hint.has_key("name") or hint["name"] == new_addr["name"]) and -- cgit v1.2.3