diff options
author | Philip Balister <philip@opensdr.com> | 2010-11-17 11:13:31 -0800 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2010-11-17 11:13:31 -0800 |
commit | 27e128ea70249bf4a79c6957fab14a3c4cad75f8 (patch) | |
tree | fd0d807a56eca53f7e35581082f8901450c67c57 /host/lib/usrp | |
parent | 862a3f264671a133d9ff7e5b39d707d105a1dd45 (diff) | |
download | uhd-27e128ea70249bf4a79c6957fab14a3c4cad75f8.tar.gz uhd-27e128ea70249bf4a79c6957fab14a3c4cad75f8.tar.bz2 uhd-27e128ea70249bf4a79c6957fab14a3c4cad75f8.zip |
usrp e100 : Add sleep after loading module.
After loading the module, we need to wait until /dev/usrp_e0 is available
before proceeding.
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/usrp_e100/usrp_e100_impl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp_e100/usrp_e100_impl.cpp b/host/lib/usrp/usrp_e100/usrp_e100_impl.cpp index a3e03056a..40ea56466 100644 --- a/host/lib/usrp/usrp_e100/usrp_e100_impl.cpp +++ b/host/lib/usrp/usrp_e100/usrp_e100_impl.cpp @@ -123,6 +123,7 @@ static device::sptr usrp_e100_make(const device_addr_t &device_addr){ if (fpga_compat_num != USRP_E_COMPAT_NUM or loaded_hash != fpga_hash){ iface.reset(); usrp_e100_load_fpga(usrp_e100_fpga_image); + sleep(1); ///\todo do this better one day. std::cout << boost::format("re-Opening USRP-E on %s") % node << std::endl; iface = usrp_e100_iface::make(node); try{std::ofstream(hash_file_path) << fpga_hash;}catch(...){} |