diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-01 20:57:09 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-11-10 19:29:06 -0800 |
commit | 775383e635cdf27ede64f5936a649570b74d7c70 (patch) | |
tree | e788ed4e04bafc6e82f1e610ab3113b5741a8ed0 /host/lib/usrp/dboard/db_rfx.cpp | |
parent | 08dfff379865656e94b31fd565a4b13b4609ea63 (diff) | |
download | uhd-775383e635cdf27ede64f5936a649570b74d7c70.tar.gz uhd-775383e635cdf27ede64f5936a649570b74d7c70.tar.bz2 uhd-775383e635cdf27ede64f5936a649570b74d7c70.zip |
uhd: added meta-range clip and implemented in dboards, fixed step calculation
Diffstat (limited to 'host/lib/usrp/dboard/db_rfx.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_rfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_rfx.cpp b/host/lib/usrp/dboard/db_rfx.cpp index bb9e19708..4e73fb3a3 100644 --- a/host/lib/usrp/dboard/db_rfx.cpp +++ b/host/lib/usrp/dboard/db_rfx.cpp @@ -292,7 +292,7 @@ double rfx_xcvr::set_lo_freq( ) % (target_freq/1e6) << std::endl; //clip the input - target_freq = std::clip(target_freq, _freq_range.start(), _freq_range.stop()); + target_freq = _freq_range.clip(target_freq); if (_div2[unit]) target_freq *= 2; //map prescalers to the register enums |