diff options
author | Tom Tsou <tom.tsou@ettus.com> | 2015-05-18 16:51:44 -0700 |
---|---|---|
committer | Tom Tsou <tom.tsou@ettus.com> | 2015-05-18 16:51:44 -0700 |
commit | 5c7c1783697bea21f77d64338157bb26c5e5c255 (patch) | |
tree | 918aa18f5b89aadb281a15408e43ef49422c2239 | |
parent | 90f7a01d1de4bd915b3999b168535ed6e68e9c50 (diff) |
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 <tom.tsou@ettus.com>
-rw-r--r-- | Transceiver52M/UHDDevice.cpp | 4 |
1 files 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; } |