diff options
author | Josh Blum <josh@joshknows.com> | 2013-07-19 14:45:24 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2013-07-19 14:45:24 -0700 |
commit | d251a7a55b198aa61ae05809c2e601a04fcb9b97 (patch) | |
tree | 8125a0fb523cefbe897c43001c0685578d2b0ca0 /host/lib/usrp/b200 | |
parent | ae1459c7c6078727d7acfabb397db105da547a55 (diff) | |
download | uhd-d251a7a55b198aa61ae05809c2e601a04fcb9b97.tar.gz uhd-d251a7a55b198aa61ae05809c2e601a04fcb9b97.tar.bz2 uhd-d251a7a55b198aa61ae05809c2e601a04fcb9b97.zip |
b200: use existing query rate calls to clip
Diffstat (limited to 'host/lib/usrp/b200')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 01db182e0..68d2d5594 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -640,11 +640,8 @@ void b200_impl::codec_loopback_self_test(wb_iface::sptr iface) /*********************************************************************** * Sample and tick rate comprehension below **********************************************************************/ -double b200_impl::set_tick_rate(const double raw_rate) +double b200_impl::set_tick_rate(const double rate) { - //clip rate (which can be doubled by factor) to possible bounds - const double rate = ad9361_ctrl::get_samp_rate_range().clip(raw_rate); - UHD_MSG(status) << "Asking for clock rate " << rate/1e6 << " MHz\n"; _tick_rate = _codec_ctrl->set_clock_rate(rate); UHD_MSG(status) << "Actually got clock rate " << _tick_rate/1e6 << " MHz\n"; |