diff options
author | michael-west <michael.west@ettus.com> | 2021-02-06 14:34:19 -0800 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-02-11 07:16:48 -0600 |
commit | 13f1dc28f162c74cc0eac6673d3c12d5195238d1 (patch) | |
tree | 84ebc1d923efe5d6d61e035e7d17c2f236d29fb8 /host/lib/usrp/usrp2/usrp2_impl.cpp | |
parent | 910db73c9aa9446479f00a4e90521a213568bffa (diff) | |
download | uhd-13f1dc28f162c74cc0eac6673d3c12d5195238d1.tar.gz uhd-13f1dc28f162c74cc0eac6673d3c12d5195238d1.tar.bz2 uhd-13f1dc28f162c74cc0eac6673d3c12d5195238d1.zip |
mpmd: Skip find if "resource" key is specified
MPM devices were being discovered when trying to locate PCIe connected
devices. Adding filter to exclude them if the "resource" key is
specified in the device address arguments.
Replaces "lib: disable non pcie types in find with resource" to reduce
impact to older devices and remove API change.
Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 8ca503aa9..c2514ae02 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -68,11 +68,8 @@ device_addrs_t usrp2_find(const device_addr_t& hint_) // Return an empty list of addresses when a resource is specified, // since a resource is intended for a different, non-USB, device. - if (hint.has_key_with_prefix("resource")) { - UHD_LOG_TRACE( - "USRP2 FIND", "Returning early, PCIe is not supported with usrp2 devices."); + if (hint.has_key("resource")) return usrp2_addrs; - } // if no address was specified, send a broadcast on each interface if (not hint.has_key("addr")) { |