From 02638afb18a3f120b40555fbbbf2098e8d3611e5 Mon Sep 17 00:00:00 2001 From: Michael West Date: Mon, 14 May 2018 12:51:19 -0700 Subject: UHD: Fix get_usrp_?x_info --- host/lib/usrp/multi_usrp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/usrp') 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_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(path).get(); usrp_info["tx_serial"] = db_eeprom.count("serial") ? std::string(db_eeprom.at("serial").begin(), db_eeprom.at("serial").end()) -- cgit v1.2.3