From d251a7a55b198aa61ae05809c2e601a04fcb9b97 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 19 Jul 2013 14:45:24 -0700 Subject: b200: use existing query rate calls to clip --- host/lib/usrp/b200/b200_impl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'host/lib/usrp/b200/b200_impl.cpp') 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"; -- cgit v1.2.3