examples: use coerced bandwidth for display

This commit is contained in:
Grant Meyerhoff 2024-08-08 10:34:43 -05:00 committed by joergho
parent 1cb0b04df2
commit 56978cc8b9

View File

@ -148,8 +148,8 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
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() / 1e6)
bw = usrp->get_rx_bandwidth();
std::cout << boost::format("Actual RX Bandwidth: %f MHz...") % (bw / 1e6)
<< std::endl
<< std::endl;
} else {