From f71bd44113820c2e8d7adc501e6d061f174e06f0 Mon Sep 17 00:00:00 2001 From: Grant Meyerhoff Date: Tue, 22 Jun 2021 14:41:38 -0500 Subject: uhd: Use chain's block channel to get power ref keys --- host/lib/usrp/multi_usrp_rfnoc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/lib/usrp/multi_usrp_rfnoc.cpp b/host/lib/usrp/multi_usrp_rfnoc.cpp index 43a084b95..bee19215c 100644 --- a/host/lib/usrp/multi_usrp_rfnoc.cpp +++ b/host/lib/usrp/multi_usrp_rfnoc.cpp @@ -467,7 +467,7 @@ public: ? bytes_to_str(db_eeprom.at("rx_id")) : db_eeprom.count("pid") ? bytes_to_str(db_eeprom.at("pid")) : ""; - const auto rx_power_ref_keys = rx_chain.radio->get_rx_power_ref_keys(chan); + const auto rx_power_ref_keys = rx_chain.radio->get_rx_power_ref_keys(rx_chain.block_chan); if (!rx_power_ref_keys.empty() && rx_power_ref_keys.size() == 2) { usrp_info["rx_ref_power_key"] = rx_power_ref_keys.at(0); usrp_info["rx_ref_power_serial"] = rx_power_ref_keys.at(1); @@ -501,7 +501,7 @@ public: ? bytes_to_str(db_eeprom.at("tx_id")) : db_eeprom.count("pid") ? bytes_to_str(db_eeprom.at("pid")) : ""; - const auto tx_power_ref_keys = tx_chain.radio->get_tx_power_ref_keys(chan); + const auto tx_power_ref_keys = tx_chain.radio->get_tx_power_ref_keys(tx_chain.block_chan); if (!tx_power_ref_keys.empty() && tx_power_ref_keys.size() == 2) { usrp_info["tx_ref_power_key"] = tx_power_ref_keys.at(0); usrp_info["tx_ref_power_serial"] = tx_power_ref_keys.at(1); -- cgit v1.2.3