diff options
| author | michael-west <michael.west@ettus.com> | 2015-05-04 15:14:32 -0700 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2015-05-04 16:26:15 -0700 | 
| commit | a0b808e158e75369cfe6f4c97224952664939fdd (patch) | |
| tree | e256b0f0906b22abf0c7f4015284b249798b4058 /host/lib/usrp/b200 | |
| parent | 47ba30d96b41e7824d059e29b3e5e640b4cab21f (diff) | |
| download | uhd-a0b808e158e75369cfe6f4c97224952664939fdd.tar.gz uhd-a0b808e158e75369cfe6f4c97224952664939fdd.tar.bz2 uhd-a0b808e158e75369cfe6f4c97224952664939fdd.zip  | |
B200: Made find function properly ignore missing "product" value (BUG #770)
Diffstat (limited to 'host/lib/usrp/b200')
| -rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 4 | 
1 files changed, 1 insertions, 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  | 
