diff options
author | Josh Blum <josh@joshknows.com> | 2013-03-14 17:48:34 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2013-03-25 16:05:41 -0700 |
commit | ee3082224f579da63b33f44f5275288032aac774 (patch) | |
tree | 8a780cb65ac80c4c0ed7ac3e88127c742d54e303 /host/lib/usrp/e100/e100_impl.cpp | |
parent | c5223d192205f729b316197c83fc69eb67b6ee45 (diff) | |
download | uhd-ee3082224f579da63b33f44f5275288032aac774.tar.gz uhd-ee3082224f579da63b33f44f5275288032aac774.tar.bz2 uhd-ee3082224f579da63b33f44f5275288032aac774.zip |
e100: switch to fixed length xfers
Diffstat (limited to 'host/lib/usrp/e100/e100_impl.cpp')
-rw-r--r-- | host/lib/usrp/e100/e100_impl.cpp | 6 |
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)); } |