summaryrefslogtreecommitdiff
path: root/usrp/host/lib/db_wbxng.cc
diff options
context:
space:
mode:
authorJason Abele2010-06-03 12:49:03 -0700
committerJohnathan Corgan2010-06-04 22:38:39 -0700
commit1e44cf9e9c46c83e9acde104478fa2bd9acadc35 (patch)
treeb41c1897e240e54df2ad79a0c2f8f2020177b048 /usrp/host/lib/db_wbxng.cc
parentcf80eaf2502f3ff8a0bac13ee1a456baddfa7d42 (diff)
downloadgnuradio-1e44cf9e9c46c83e9acde104478fa2bd9acadc35.tar.gz
gnuradio-1e44cf9e9c46c83e9acde104478fa2bd9acadc35.tar.bz2
gnuradio-1e44cf9e9c46c83e9acde104478fa2bd9acadc35.zip
Fixing wbx to use _refclk_freq()
Diffstat (limited to 'usrp/host/lib/db_wbxng.cc')
-rw-r--r--usrp/host/lib/db_wbxng.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/usrp/host/lib/db_wbxng.cc b/usrp/host/lib/db_wbxng.cc
index bd836dfe3..0666025bd 100644
--- a/usrp/host/lib/db_wbxng.cc
+++ b/usrp/host/lib/db_wbxng.cc
@@ -71,6 +71,12 @@ wbxng_base::~wbxng_base()
delete d_common;
}
+int
+wbxng_base::_refclk_divisor()
+{
+ return 1;
+}
+
struct freq_result_t
wbxng_base::set_freq(double freq)
{
@@ -83,8 +89,8 @@ wbxng_base::set_freq(double 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;
+ bool ok = d_common->_set_freq(int_freq*2, _refclk_freq());
+ double freq_result = (double) d_common->_get_freq(_refclk_freq())/2.0;
struct freq_result_t args = {ok, freq_result};
/* Wait before reading Lock Detect*/