diff options
author | David Raeman <david@synopticengineering.com> | 2022-02-22 03:28:36 +0000 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-02-28 14:52:46 -0600 |
commit | 35af875cccef07f10bd90fcb3006182b8b48bdd0 (patch) | |
tree | 3a3525ee1748eccea50a96bdcd342aa273c20773 /host/lib/usrp/dboard/rhodium | |
parent | 9c654a8f9a6f030a54c59296ae38ab3ea3428e22 (diff) | |
download | uhd-35af875cccef07f10bd90fcb3006182b8b48bdd0.tar.gz uhd-35af875cccef07f10bd90fcb3006182b8b48bdd0.tar.bz2 uhd-35af875cccef07f10bd90fcb3006182b8b48bdd0.zip |
uhd: fix negligible copy/paste typos in rhodium radio control
Diffstat (limited to 'host/lib/usrp/dboard/rhodium')
-rw-r--r-- | host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp | 6 | ||||
-rw-r--r-- | host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
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<std::string> 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<meta_range_t>(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<std::vector<std::string>>( |