diff options
-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>>( |