diff options
author | Mark Meserve <mark.meserve@ni.com> | 2018-11-16 18:31:05 -0600 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-11-16 16:41:59 -0800 |
commit | 4ecb817f2ca60e5db8491e38c68e7e0dc9ac5277 (patch) | |
tree | 4e63382f1e06bcb4fc57676f45d1368b1070e1c0 /host/examples | |
parent | b8e2d782c9718ce0743a1e9d117c6d3f7c17e65f (diff) | |
download | uhd-4ecb817f2ca60e5db8491e38c68e7e0dc9ac5277.tar.gz uhd-4ecb817f2ca60e5db8491e38c68e7e0dc9ac5277.tar.bz2 uhd-4ecb817f2ca60e5db8491e38c68e7e0dc9ac5277.zip |
uhd: fix rx antenna not being applied in txrx example
Diffstat (limited to 'host/examples')
-rw-r--r-- | host/examples/txrx_loopback_to_file.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/examples/txrx_loopback_to_file.cpp b/host/examples/txrx_loopback_to_file.cpp index 9454e4b97..03c765fca 100644 --- a/host/examples/txrx_loopback_to_file.cpp +++ b/host/examples/txrx_loopback_to_file.cpp @@ -367,9 +367,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ rx_usrp->set_rx_bandwidth(rx_bw, channel); std::cout << boost::format("Actual RX Bandwidth: %f MHz...") % (rx_usrp->get_rx_bandwidth(channel)/1e6) << std::endl << std::endl; } + + // set the receive antenna + if (vm.count("rx-ant")) rx_usrp->set_rx_antenna(rx_ant, channel); } - //set the receive antenna - if (vm.count("ant")) rx_usrp->set_rx_antenna(rx_ant); //for the const wave, set the wave freq for small samples per period if (wave_freq == 0 and wave_type == "CONST"){ |