host: mpmd based uhd_image_loader: prefer .bin files

Prefer .bin over .bit files when loading FPGA without full
FPGA path name. This changes the order which was introduced
with commit 2618b51cb8.
This commit is contained in:
Jörg Hofrichter 2026-09-07 17:16:37 +02:00 committed by mkoop-ni
parent 6cb889675f
commit d687c4ebbe

View File

@ -208,9 +208,9 @@ static std::string get_fpga_path(
std::string type_name = fpga_type.empty() ? "" : "_" + fpga_type;
std::string image_path;
try {
image_path = find_image_path(base_name + type_name + ".bit");
} catch (const uhd::io_error&) {
image_path = find_image_path(base_name + type_name + ".bin");
} catch (const uhd::io_error&) {
image_path = find_image_path(base_name + type_name + ".bit");
}
return image_path;
}