From 7ac01c7f979aab8fac5e62f596ff0af52cedec40 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Wed, 5 Jul 2017 09:44:48 -0700 Subject: fixup! x300: Changed discovery to return early if we find the serial requested --- host/lib/usrp/x300/x300_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/x300') 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; } -- cgit v1.2.3