aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mpmd
diff options
context:
space:
mode:
authorAndrew Lynch <andrew.lynch@ni.com>2019-06-13 12:42:03 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-01-11 13:18:22 -0600
commit53ef97460eea713a013244d88a4b08bf95f4a790 (patch)
treeaac47da35d6f0dc3a0ae38249e7806d4cf459987 /host/lib/usrp/mpmd
parentfab4a5dd1708de6c5dc5fb4dc50b396a4adfeb51 (diff)
downloaduhd-53ef97460eea713a013244d88a4b08bf95f4a790.tar.gz
uhd-53ef97460eea713a013244d88a4b08bf95f4a790.tar.bz2
uhd-53ef97460eea713a013244d88a4b08bf95f4a790.zip
utils: check config file before finding devices for image loader
Diffstat (limited to 'host/lib/usrp/mpmd')
-rw-r--r--host/lib/usrp/mpmd/mpmd_image_loader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_image_loader.cpp b/host/lib/usrp/mpmd/mpmd_image_loader.cpp
index a44ca7713..06d9c53a2 100644
--- a/host/lib/usrp/mpmd/mpmd_image_loader.cpp
+++ b/host/lib/usrp/mpmd/mpmd_image_loader.cpp
@@ -14,6 +14,7 @@
#include <uhd/types/eeprom.hpp>
#include <uhd/utils/paths.hpp>
#include <uhd/utils/static.hpp>
+#include <uhdlib/utils/prefs.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem/convenience.hpp>
#include <fstream>
@@ -103,7 +104,7 @@ uhd::usrp::component_file_t generate_component(const std::string& id,
static bool mpmd_image_loader(const image_loader::image_loader_args_t& image_loader_args)
{
// See if any MPM devices with the given args are found
- device_addr_t find_hint = image_loader_args.args;
+ device_addr_t find_hint = prefs::get_usrp_args(image_loader_args.args);
find_hint.set("find_all", "1"); // We need to find all devices
device_addrs_t devs = mpmd_find(find_hint);