From cf644768c43cc15844e3f1b64f6e363634719f5e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 20 Feb 2018 14:35:10 -0800 Subject: uhd: device: Auto-apply config file options to USRPs --- host/lib/device.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/lib/device.cpp b/host/lib/device.cpp index 4953bb3b1..90d7ae374 100644 --- a/host/lib/device.cpp +++ b/host/lib/device.cpp @@ -12,6 +12,9 @@ #include #include +#include + + #include #include #include @@ -168,8 +171,10 @@ device::sptr device::make(const device_addr_t &hint, device_filter_t filter, siz return hash_to_device[dev_hash].lock(); } else { - //create and register a new device - device::sptr dev = maker(dev_addr); + // Add keys from the config files (note: the user-defined keys will + // always be applied, see also get_usrp_args() + // Then, create and register a new device. + device::sptr dev = maker(prefs::get_usrp_args(dev_addr)); hash_to_device[dev_hash] = dev; return dev; } -- cgit v1.2.3