From 4dc4c3cd700db5b1e66ca2be275bf5f743a75c8e Mon Sep 17 00:00:00 2001 From: Rajib Bhattacharjea Date: Wed, 4 Feb 2015 14:48:04 -0500 Subject: examples: Show set_rx_bandwidth units properly in MHz in all examples Conflicts: host/examples/rx_samples_to_file.cpp --- host/examples/txrx_loopback_to_file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/examples/txrx_loopback_to_file.cpp') diff --git a/host/examples/txrx_loopback_to_file.cpp b/host/examples/txrx_loopback_to_file.cpp index f8c8b9785..4eb6daa6c 100644 --- a/host/examples/txrx_loopback_to_file.cpp +++ b/host/examples/txrx_loopback_to_file.cpp @@ -419,9 +419,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //set the receive analog frontend filter bandwidth if (vm.count("rx-bw")){ - std::cout << boost::format("Setting RX Bandwidth: %f MHz...") % rx_bw << std::endl; + std::cout << boost::format("Setting RX Bandwidth: %f MHz...") % (rx_bw/1e6) << std::endl; rx_usrp->set_rx_bandwidth(rx_bw, channel); - std::cout << boost::format("Actual RX Bandwidth: %f MHz...") % rx_usrp->get_rx_bandwidth(channel) << std::endl << std::endl; + std::cout << boost::format("Actual RX Bandwidth: %f MHz...") % (rx_usrp->get_rx_bandwidth(channel)/1e6) << std::endl << std::endl; } } //set the receive antenna -- cgit v1.2.3