diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-01-15 09:56:32 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-15 09:56:32 -0800 |
commit | eaed9d5ac511a08a123a28d1c0fc48789ca1480b (patch) | |
tree | 94a18342d985c52cd456a1d58ea07481f3734acf /host/examples | |
parent | 4e873a4cb19552f6903f69739f0a6818c8a5e263 (diff) | |
download | uhd-eaed9d5ac511a08a123a28d1c0fc48789ca1480b.tar.gz uhd-eaed9d5ac511a08a123a28d1c0fc48789ca1480b.tar.bz2 uhd-eaed9d5ac511a08a123a28d1c0fc48789ca1480b.zip |
examples: Fix bandwidth unit (MHz vs. Hz) in tx_samples_from_file
Diffstat (limited to 'host/examples')
-rw-r--r-- | host/examples/tx_samples_from_file.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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 |