diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-05-19 13:44:21 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-05-19 13:44:21 -0700 |
commit | adac03ceb88dc9d11f9bc29afbbd49c4981c48ea (patch) | |
tree | 5456d7771a87c9d4cca6aad13c11119bff97d929 /host/lib/usrp/common/ad9361_driver/ad9361_device.cpp | |
parent | c4f8e2cd5e4b1457a979a2555fd9725837d6b430 (diff) | |
download | uhd-adac03ceb88dc9d11f9bc29afbbd49c4981c48ea.tar.gz uhd-adac03ceb88dc9d11f9bc29afbbd49c4981c48ea.tar.bz2 uhd-adac03ceb88dc9d11f9bc29afbbd49c4981c48ea.zip |
ad9361: Minor clarifications on req_rate and baseband_bw
Diffstat (limited to 'host/lib/usrp/common/ad9361_driver/ad9361_device.cpp')
-rw-r--r-- | host/lib/usrp/common/ad9361_driver/ad9361_device.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp index e3139cd39..413ec75a2 100644 --- a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp +++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp @@ -1247,7 +1247,7 @@ double ad9361_device_t::_setup_rates(const double rate) /* If we make it into this function, then we are tuning to a new rate. * Store the new rate. */ _req_clock_rate = rate; - UHD_LOG << boost::format("[ad9361_device_t::_setup_rates] rate=%d\n") % rate; + UHD_LOG << boost::format("[ad9361_device_t::_setup_rates] rate=%.6d\n") % rate; /* Set the decimation and interpolation values in the RX and TX chains. * This also switches filters in / out. Note that all transmitters and @@ -1629,7 +1629,9 @@ double ad9361_device_t::set_clock_rate(const double req_rate) * starts up. This prevents that, and any bugs in user code that request * the same rate over and over. */ if (freq_is_nearly_equal(req_rate, _req_clock_rate)) { - return _baseband_bw; // IJB. Should this not return req_rate? + // We return _baseband_bw, because that's closest to the + // actual value we're currently running. + return _baseband_bw; } /* We must be in the SLEEP / WAIT state to do this. If we aren't already |