From eaed9d5ac511a08a123a28d1c0fc48789ca1480b Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 15 Jan 2018 09:56:32 -0800 Subject: examples: Fix bandwidth unit (MHz vs. Hz) in tx_samples_from_file --- host/examples/tx_samples_from_file.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/examples/tx_samples_from_file.cpp b/host/examples/tx_samples_from_file.cpp index 5b31894d9..9de7efb95 100644 --- a/host/examples/tx_samples_from_file.cpp +++ b/host/examples/tx_samples_from_file.cpp @@ -134,9 +134,13 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //set the analog frontend filter bandwidth if (vm.count("bw")){ - std::cout << boost::format("Setting TX Bandwidth: %f MHz...") % bw << std::endl; + std::cout << boost::format("Setting TX Bandwidth: %f MHz...") + % (bw / 1e6) + << std::endl; usrp->set_tx_bandwidth(bw); - std::cout << boost::format("Actual TX Bandwidth: %f MHz...") % usrp->get_tx_bandwidth() << std::endl << std::endl; + std::cout << boost::format("Actual TX Bandwidth: %f MHz...") + % (usrp->get_tx_bandwidth() / 1e6) + << std::endl << std::endl; } //set the antenna -- cgit v1.2.3