From 13681fb7bb640eb778c1450532a35d2a85c630f8 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 3 Sep 2011 21:56:08 +0000 Subject: e100: fix FPGA filename lookup, and use model string for name --- host/lib/usrp/e100/e100_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/usrp/e100') diff --git a/host/lib/usrp/e100/e100_impl.cpp b/host/lib/usrp/e100/e100_impl.cpp index 052785d4e..5c7ff04fd 100644 --- a/host/lib/usrp/e100/e100_impl.cpp +++ b/host/lib/usrp/e100/e100_impl.cpp @@ -124,7 +124,7 @@ e100_impl::e100_impl(const uhd::device_addr_t &device_addr){ ("E100", "usrp_e100_fpga_v2.bin") ("E110", "usrp_e110_fpga.bin") ; - const std::string default_fpga_file_name = model_to_fpga_file_name(model); + const std::string default_fpga_file_name = model_to_fpga_file_name[model]; const std::string e100_fpga_image = find_image_path(device_addr.get("fpga", default_fpga_file_name)); const boost::uint32_t file_hash = boost::uint32_t(hash_fpga_file(e100_fpga_image)); @@ -183,7 +183,7 @@ e100_impl::e100_impl(const uhd::device_addr_t &device_addr){ _tree = property_tree::make(); _tree->create("/name").set("E-Series Device"); const fs_path mb_path = "/mboards/0"; - _tree->create(mb_path / "name").set("E100 (euewanee)"); + _tree->create(mb_path / "name").set(str(boost::format("%s (euewanee)") % model)); //////////////////////////////////////////////////////////////////// // setup the mboard eeprom -- cgit v1.2.3