From 4ecb817f2ca60e5db8491e38c68e7e0dc9ac5277 Mon Sep 17 00:00:00 2001 From: Mark Meserve Date: Fri, 16 Nov 2018 18:31:05 -0600 Subject: uhd: fix rx antenna not being applied in txrx example --- host/examples/txrx_loopback_to_file.cpp | 5 +++-- 1 file 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"){ -- cgit v1.2.3