aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2018-05-14 12:51:19 -0700
committerMartin Braun <martin.braun@ettus.com>2018-05-15 11:44:16 -0700
commit02638afb18a3f120b40555fbbbf2098e8d3611e5 (patch)
tree811af1403f0a82da83d8bdf90ae2d999d6e7cce7
parent9085644bd16d84b978b8865a0d97ca9833c07835 (diff)
downloaduhd-02638afb18a3f120b40555fbbbf2098e8d3611e5.tar.gz
uhd-02638afb18a3f120b40555fbbbf2098e8d3611e5.tar.bz2
uhd-02638afb18a3f120b40555fbbbf2098e8d3611e5.zip
UHD: Fix get_usrp_?x_info
-rw-r--r--host/lib/usrp/multi_usrp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp
index b408e44e4..9b61344ef 100644
--- a/host/lib/usrp/multi_usrp.cpp
+++ b/host/lib/usrp/multi_usrp.cpp
@@ -433,7 +433,7 @@ public:
const auto radio_index = get_radio_index(spec.db_name);
const auto radio_path = rfnoc_path / str(boost::format("Radio_%d") % radio_index);
const auto eeprom_path = radio_path / "eeprom";
- if (_tree->exists(radio_path)) {
+ if (_tree->exists(eeprom_path)) {
const auto db_eeprom = _tree->access<eeprom_map_t>(eeprom_path).get();
usrp_info["rx_serial"] = db_eeprom.count("serial") ?
std::string(db_eeprom.at("serial").begin(), db_eeprom.at("serial").end())
@@ -474,7 +474,7 @@ public:
const auto radio_index = get_radio_index(spec.db_name);
const auto radio_path = rfnoc_path / str(boost::format("Radio_%d")%radio_index);
const auto path = radio_path / "eeprom";
- if(_tree->exists(radio_path)) {
+ if(_tree->exists(path)) {
const auto db_eeprom = _tree->access<eeprom_map_t>(path).get();
usrp_info["tx_serial"] = db_eeprom.count("serial") ?
std::string(db_eeprom.at("serial").begin(), db_eeprom.at("serial").end())