diff options
author | mattprost <matt.prost@ni.com> | 2021-06-25 13:01:18 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-06-25 13:59:14 -0500 |
commit | 0ea89ffaa4779dd045ea56a8afc5e81f57d7ad9d (patch) | |
tree | b044a7d9bf971b509875c219f2914ece6d7827a5 /host | |
parent | a8fe73016f5d91f66036307aa90e670315c9ec96 (diff) | |
download | uhd-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.cpp | 4 |
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; } |