diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2014-08-13 10:29:31 -0700 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2014-08-13 10:29:31 -0700 |
commit | 41657ecc535386e39c4ff78cd84c8533b7599741 (patch) | |
tree | 8b737a2fe6d0da8d4232705ac23008e9ca2551c4 /host/lib/usrp/b200 | |
parent | 302dfa7ea7c651c39fc6a93b82a027e9e3bc2b8c (diff) | |
download | uhd-41657ecc535386e39c4ff78cd84c8533b7599741.tar.gz uhd-41657ecc535386e39c4ff78cd84c8533b7599741.tar.bz2 uhd-41657ecc535386e39c4ff78cd84c8533b7599741.zip |
ad9361: Cleaned up constants and macros
Diffstat (limited to 'host/lib/usrp/b200')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 0d0cec784..f33f6ef2c 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -714,7 +714,7 @@ void b200_impl::enforce_tick_rate_limits(size_t chan_count, double tick_rate, co } else { - const double max_tick_rate = ((chan_count <= 1) ? AD9361_1_CHAN_CLOCK_RATE_MAX : AD9361_2_CHAN_CLOCK_RATE_MAX); + const double max_tick_rate = ad9361_device_t::AD9361_MAX_CLOCK_RATE / ((chan_count <= 1) ? 1 : 2); if (tick_rate - max_tick_rate >= 1.0) { throw uhd::value_error(boost::str( |