aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300/e300_impl.cpp
diff options
context:
space:
mode:
authorSugandha Gupta <sugandha.gupta@ettus.com>2016-10-06 13:36:45 -0700
committerMartin Braun <martin.braun@ettus.com>2017-06-30 13:32:53 -0700
commit51ecda41e3c57883ee4787cec0a8aede6020d092 (patch)
tree497758d5c66b1ffa73ba3aeeb5940db5c0078bc7 /host/lib/usrp/e300/e300_impl.cpp
parentf3d4d317f7d8e83c1435de4208fa66754522c1e2 (diff)
downloaduhd-51ecda41e3c57883ee4787cec0a8aede6020d092.tar.gz
uhd-51ecda41e3c57883ee4787cec0a8aede6020d092.tar.bz2
uhd-51ecda41e3c57883ee4787cec0a8aede6020d092.zip
e300: Fixed product name to show device and speed grade
Diffstat (limited to 'host/lib/usrp/e300/e300_impl.cpp')
-rw-r--r--host/lib/usrp/e300/e300_impl.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp
index 538eded79..7e99e2f70 100644
--- a/host/lib/usrp/e300/e300_impl.cpp
+++ b/host/lib/usrp/e300/e300_impl.cpp
@@ -200,7 +200,7 @@ device_addrs_t e300_find(const device_addr_t &multi_dev_hint)
const mboard_eeprom_t eeprom = eeprom_manager.get_mb_eeprom();
new_addr["name"] = eeprom["name"];
new_addr["serial"] = eeprom["serial"];
- new_addr["product"] = eeprom["product"];
+ new_addr["product"] = eeprom_manager.get_mb_type_string();
} catch (...) {
// set these values as empty string, so the device may still be found
// and the filters below can still operate on the discovered device
@@ -236,7 +236,7 @@ device_addrs_t e300_find(const device_addr_t &multi_dev_hint)
const mboard_eeprom_t eeprom = eeprom_manager.get_mb_eeprom();
new_addr["name"] = eeprom["name"];
new_addr["serial"] = eeprom["serial"];
- new_addr["product"] = eeprom["product"];
+ new_addr["product"] = eeprom_manager.get_mb_type_string();
} catch (...) {
// set these values as empty string, so the device may still be found
// and the filters below can still operate on the discovered device
@@ -323,7 +323,14 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr)
_do_not_reload = device_addr.has_key("no_reload_fpga");
if (not _do_not_reload) {
std::string fpga_image;
- get_e3x0_fpga_images(device_addr,
+
+ // need to re-read product ID code because of conversion into string in find function
+ e300_eeprom_manager eeprom_manager(i2c::make_i2cdev(E300_I2CDEV_DEVICE));
+ const mboard_eeprom_t eeprom = eeprom_manager.get_mb_eeprom();
+ device_addr_t device_addr_cp;
+ device_addr_cp["product"] = eeprom["product"];
+
+ get_e3x0_fpga_images(device_addr_cp,
fpga_image,
_idle_image);
common::load_fpga_image(fpga_image);