aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e100/e100_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-03-25 16:08:03 -0700
committerJosh Blum <josh@joshknows.com>2013-03-25 16:08:03 -0700
commit8488eb09d7db13f67f38dc986b191fd6f3eeea2d (patch)
tree5d5026f8fb62b09332e49d72d2bbbe7a97881b94 /host/lib/usrp/e100/e100_impl.cpp
parent55d450ba11d8ae46734e291d2876a4a2c9eaaba3 (diff)
parent404a84fcef665d262eee09ba10c841acdd7cbdf2 (diff)
downloaduhd-8488eb09d7db13f67f38dc986b191fd6f3eeea2d.tar.gz
uhd-8488eb09d7db13f67f38dc986b191fd6f3eeea2d.tar.bz2
uhd-8488eb09d7db13f67f38dc986b191fd6f3eeea2d.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/e100/e100_impl.cpp')
-rw-r--r--host/lib/usrp/e100/e100_impl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/e100/e100_impl.cpp b/host/lib/usrp/e100/e100_impl.cpp
index a0fa6c47e..619ea8f8e 100644
--- a/host/lib/usrp/e100/e100_impl.cpp
+++ b/host/lib/usrp/e100/e100_impl.cpp
@@ -534,6 +534,12 @@ void e100_impl::check_fpga_compat(void){
"The FPGA build is not compatible with the host code build."
) % int(E100_FPGA_COMPAT_NUM) % fpga_major));
}
+ if (fpga_minor < 2){
+ throw uhd::runtime_error(str(boost::format(
+ "Expected FPGA compatibility minor number at least %d, but got %d:\n"
+ "The FPGA build is not compatible with the host code build."
+ ) % int(2) % fpga_minor));
+ }
_tree->create<std::string>("/mboards/0/fpga_version").set(str(boost::format("%u.%u") % fpga_major % fpga_minor));
}