From 35af875cccef07f10bd90fcb3006182b8b48bdd0 Mon Sep 17 00:00:00 2001 From: David Raeman Date: Tue, 22 Feb 2022 03:28:36 +0000 Subject: uhd: fix negligible copy/paste typos in rhodium radio control --- host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp | 6 +++--- host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp b/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp index 6e24be21f..ae750f903 100644 --- a/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp +++ b/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp @@ -729,9 +729,9 @@ std::vector rhodium_radio_control_impl::get_tx_sensor_names(size_t) sensor_value_t rhodium_radio_control_impl::get_tx_sensor( const std::string& name, size_t chan) { - if (!uhd::has(_rx_sensor_names, name)) { - RFNOC_LOG_ERROR("Invalid RX sensor name: " << name); - throw uhd::key_error("Invalid RX sensor name!"); + if (!uhd::has(_tx_sensor_names, name)) { + RFNOC_LOG_ERROR("Invalid TX sensor name: " << name); + throw uhd::key_error("Invalid TX sensor name!"); } if (name == "lo_locked") { return sensor_value_t( diff --git a/host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp b/host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp index 06c1c533a..ca9d500ab 100644 --- a/host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp +++ b/host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp @@ -442,7 +442,7 @@ void rhodium_radio_control_impl::_init_frontend_subtree(uhd::property_tree::sptr .set_coercer( [this](double freq) { return this->set_tx_lo_freq(freq, RHODIUM_LO1, 0); }); subtree->create(tx_fe_path / "los" / RHODIUM_LO1 / "freq/range") - .set_publisher([this]() { return this->get_rx_lo_freq_range(RHODIUM_LO1, 0); }); + .set_publisher([this]() { return this->get_tx_lo_freq_range(RHODIUM_LO1, 0); }); // TX LO1 Source subtree ->create>( -- cgit v1.2.3