Commit 7a454604 authored by Thomas Telkamp's avatar Thomas Telkamp
Browse files

set bw to rate if not specified

parent a83db9ac
......@@ -468,15 +468,16 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
}
// set the IF filter bandwidth
if (vm.count("bw")) {
std::cout << boost::format("Setting RX Bandwidth: %f MHz...") % (bw / 1e6)
<< std::endl;
usrp->set_rx_bandwidth(bw, channel);
std::cout << boost::format("Actual RX Bandwidth: %f MHz...")
% (usrp->get_rx_bandwidth(channel) / 1e6)
<< std::endl
<< std::endl;
if (!vm.count("bw")) {
bw = rate;
}
std::cout << boost::format("Setting RX Bandwidth: %f MHz...") % (bw / 1e6)
<< std::endl;
usrp->set_rx_bandwidth(bw, channel);
std::cout << boost::format("Actual RX Bandwidth: %f MHz...")
% (usrp->get_rx_bandwidth(channel) / 1e6)
<< std::endl
<< std::endl;
// set the antenna
if (vm.count("ant"))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment