From 53ef97460eea713a013244d88a4b08bf95f4a790 Mon Sep 17 00:00:00 2001 From: Andrew Lynch Date: Thu, 13 Jun 2019 12:42:03 -0500 Subject: utils: check config file before finding devices for image loader --- host/lib/usrp/mpmd/mpmd_image_loader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host') 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 #include #include +#include #include #include #include @@ -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); -- cgit v1.2.3