diff options
author | Jason Abele | 2010-04-16 15:00:51 -0700 |
---|---|---|
committer | Jason Abele | 2010-04-16 15:00:51 -0700 |
commit | 23fcf0ccf9ac30a95afcbba99e478af9ce2081dc (patch) | |
tree | 273c3d2a7c651303da2ad90cd6b01d9ab5ccc630 /usrp/host/lib | |
parent | ad973608d979675755cb537f14ae0a53f71e6489 (diff) | |
download | gnuradio-23fcf0ccf9ac30a95afcbba99e478af9ce2081dc.tar.gz gnuradio-23fcf0ccf9ac30a95afcbba99e478af9ce2081dc.tar.bz2 gnuradio-23fcf0ccf9ac30a95afcbba99e478af9ce2081dc.zip |
Fix WBX tuning to allow DDC use in reaching 50MHz
Diffstat (limited to 'usrp/host/lib')
-rw-r--r-- | usrp/host/lib/db_wbxng.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usrp/host/lib/db_wbxng.cc b/usrp/host/lib/db_wbxng.cc index b35a9cb35..bd836dfe3 100644 --- a/usrp/host/lib/db_wbxng.cc +++ b/usrp/host/lib/db_wbxng.cc @@ -80,7 +80,9 @@ wbxng_base::set_freq(double freq) actual_baseband_freq is the RF frequency that corresponds to DC in the IF. */ - freq_t int_freq = freq_t(freq); + // clamp freq + freq_t int_freq = freq_t(std::max(freq_min(), std::min(freq, freq_max()))); + bool ok = d_common->_set_freq(int_freq*2); double freq_result = (double) d_common->_get_freq()/2.0; struct freq_result_t args = {ok, freq_result}; |