summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/usrp/usrp_e/fpga-downloader.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp_e/fpga-downloader.cc b/host/lib/usrp/usrp_e/fpga-downloader.cc
index 5fd2c8dd0..4dc537919 100644
--- a/host/lib/usrp/usrp_e/fpga-downloader.cc
+++ b/host/lib/usrp/usrp_e/fpga-downloader.cc
@@ -16,6 +16,7 @@
//
#include <uhd/config.hpp>
+#include <uhd/utils/assert.hpp>
#include <iostream>
#include <sstream>
@@ -259,7 +260,7 @@ void usrp_e_load_fpga(const std::string &bin_file){
std::cout << "Loading FPGA image: " << bin_file << "... " << std::flush;
- system("/sbin/rmmod usrp_e");
+ UHD_ASSERT_THROW(std::system("/sbin/rmmod usrp_e") == 0);
prepare_fpga_for_configuration(gpio_prog_b, gpio_init_b);
@@ -267,7 +268,7 @@ void usrp_e_load_fpga(const std::string &bin_file){
send_file_to_fpga(bin_file, gpio_init_b, gpio_done);
- system("/sbin/modprobe usrp_e");
+ UHD_ASSERT_THROW(std::system("/sbin/modprobe usrp_e") == 0);
}