aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authormattprost <matt.prost@ni.com>2021-06-25 13:01:18 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-06-25 13:59:14 -0500
commit0ea89ffaa4779dd045ea56a8afc5e81f57d7ad9d (patch)
treeb044a7d9bf971b509875c219f2914ece6d7827a5 /host
parenta8fe73016f5d91f66036307aa90e670315c9ec96 (diff)
downloaduhd-0ea89ffaa4779dd045ea56a8afc5e81f57d7ad9d.tar.gz
uhd-0ea89ffaa4779dd045ea56a8afc5e81f57d7ad9d.tar.bz2
uhd-0ea89ffaa4779dd045ea56a8afc5e81f57d7ad9d.zip
examples: Fix tx frequency tuning in radio loopback
Diffstat (limited to 'host')
-rw-r--r--host/examples/rfnoc_radio_loopback.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/rfnoc_radio_loopback.cpp b/host/examples/rfnoc_radio_loopback.cpp
index bc5bc91be..a0a1cca3d 100644
--- a/host/examples/rfnoc_radio_loopback.cpp
+++ b/host/examples/rfnoc_radio_loopback.cpp
@@ -169,9 +169,9 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
if (vm.count("int-n")) {
tune_request.args = uhd::device_addr_t("mode_n=integer");
}
- rx_radio_ctrl->set_tx_frequency(tx_freq, tx_chan);
+ tx_radio_ctrl->set_tx_frequency(tx_freq, tx_chan);
std::cout << boost::format("Actual TX Freq: %f MHz...")
- % (rx_radio_ctrl->get_tx_frequency(tx_chan) / 1e6)
+ % (tx_radio_ctrl->get_tx_frequency(tx_chan) / 1e6)
<< std::endl
<< std::endl;
}