aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/examples/tx_samples_from_file.cpp8
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