From b36096d18b067689780984931d16e22c443799df Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Thu, 9 Jun 2011 18:34:19 -0700 Subject: B100/USRP1: fix bug where fpga size div by 64 resulted in never finishing load --- host/lib/usrp/usrp1/usrp1_ctrl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/host/lib/usrp/usrp1/usrp1_ctrl.cpp b/host/lib/usrp/usrp1/usrp1_ctrl.cpp index 2e6f6e014..b29e779c1 100644 --- a/host/lib/usrp/usrp1/usrp1_ctrl.cpp +++ b/host/lib/usrp/usrp1/usrp1_ctrl.cpp @@ -240,6 +240,7 @@ public: while (not file.eof()) { file.read((char *)buf, sizeof(buf)); size_t n = file.gcount(); + if(n == 0) continue; int ret = usrp_control_write(VRQ_FPGA_LOAD, 0, FL_XFER, buf, n); if (ret < 0 or size_t(ret) != n) { throw uhd::io_error("usrp_load_fpga: fpga load error"); -- cgit v1.2.3