From 5c7c1783697bea21f77d64338157bb26c5e5c255 Mon Sep 17 00:00:00 2001 From: Tom Tsou Date: Mon, 18 May 2015 16:51:44 -0700 Subject: uhd: Pass UHD command line arguments to constructor Previous behaviour used UHD command line args string for device search, but did not apply the values to the device constructor. Now use the user passed args string for both find and device construction. Signed-off-by: Tom Tsou --- Transceiver52M/UHDDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp index 95a82b3..9043318 100644 --- a/Transceiver52M/UHDDevice.cpp +++ b/Transceiver52M/UHDDevice.cpp @@ -707,9 +707,9 @@ int uhd_device::open(const std::string &args, bool extref) // Use the first found device LOG(INFO) << "Using discovered UHD device " << dev_addrs[0].to_string(); try { - usrp_dev = uhd::usrp::multi_usrp::make(dev_addrs[0]); + usrp_dev = uhd::usrp::multi_usrp::make(addr); } catch(...) { - LOG(ALERT) << "UHD make failed, device " << dev_addrs[0].to_string(); + LOG(ALERT) << "UHD make failed, device " << args; return -1; } -- cgit v1.2.3