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/rx_ascii_art_dft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/examples/rx_ascii_art_dft.cpp') diff --git a/host/examples/rx_ascii_art_dft.cpp b/host/examples/rx_ascii_art_dft.cpp index 81208cf8b..c73e57459 100644 --- a/host/examples/rx_ascii_art_dft.cpp +++ b/host/examples/rx_ascii_art_dft.cpp @@ -110,9 +110,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //set the analog frontend filter bandwidth if (vm.count("bw")){ - std::cout << boost::format("Setting RX Bandwidth: %f MHz...") % bw << std::endl; + std::cout << boost::format("Setting RX Bandwidth: %f MHz...") % (bw/1e6) << std::endl; usrp->set_rx_bandwidth(bw); - std::cout << boost::format("Actual RX Bandwidth: %f MHz...") % usrp->get_rx_bandwidth() << std::endl << std::endl; + std::cout << boost::format("Actual RX Bandwidth: %f MHz...") % (usrp->get_rx_bandwidth()/1e6) << std::endl << std::endl; } //set the antenna -- cgit v1.2.3