aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/x300')
-rw-r--r--host/lib/usrp/x300/x300_impl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp
index 2fb7df954..b59b920ab 100644
--- a/host/lib/usrp/x300/x300_impl.cpp
+++ b/host/lib/usrp/x300/x300_impl.cpp
@@ -1359,6 +1359,8 @@ x300_impl::both_xports_t x300_impl::make_transport(
fs_path mboard_path = fs_path("/mboards/"+boost::lexical_cast<std::string>(mb_index) / "link_max_rate");
+ UHD_ASSERT_THROW(mb.loaded_fpga_image.size() >= 2);
+
if (mb.loaded_fpga_image.substr(0,2) == "HG") {
size_t max_link_rate = 0;
if (config.iface_index == X300_IFACE_ETH0) {