diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2017-07-05 09:44:48 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-07-05 11:02:28 -0700 |
commit | 7ac01c7f979aab8fac5e62f596ff0af52cedec40 (patch) | |
tree | 44fe4ff486605d10ae5cedd44d0198f23bdbe0ae /host/lib/usrp/x300 | |
parent | fc0014a77681c6ab539ea6ed76fa3bccf52933dd (diff) | |
download | uhd-7ac01c7f979aab8fac5e62f596ff0af52cedec40.tar.gz uhd-7ac01c7f979aab8fac5e62f596ff0af52cedec40.tar.bz2 uhd-7ac01c7f979aab8fac5e62f596ff0af52cedec40.zip |
fixup! x300: Changed discovery to return early if we find the serial requested
Diffstat (limited to 'host/lib/usrp/x300')
-rw-r--r-- | host/lib/usrp/x300/x300_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp index 8f6e52523..84087c6f1 100644 --- a/host/lib/usrp/x300/x300_impl.cpp +++ b/host/lib/usrp/x300/x300_impl.cpp @@ -338,7 +338,7 @@ device_addrs_t x300_find(const device_addr_t &hint_) bool found_serial = false; //signal to break out of the interface loop for (device_addrs_t::iterator new_addr_it=new_addrs.begin(); new_addr_it != new_addrs.end(); new_addr_it++) { if ((*new_addr_it)["serial"] == hint["serial"]) { - addrs.emplace(addrs.begin(), *new_addr_it); + addrs.insert(addrs.begin(), *new_addr_it); found_serial = true; break; } |