diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-14 18:47:40 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-14 18:47:40 -0700 |
commit | 6f9ce938de36476de68720e8090e9a92d0f2fefe (patch) | |
tree | 862b327c1e9f43d131db666de44f0a66571bd36e /host/lib/usrp | |
parent | eac881f6dcc169749001d5147f0f32f36ad34a21 (diff) | |
parent | 00ca9fcc3d7645d3f1a9d7d767b8ccab110325bb (diff) | |
download | uhd-6f9ce938de36476de68720e8090e9a92d0f2fefe.tar.gz uhd-6f9ce938de36476de68720e8090e9a92d0f2fefe.tar.bz2 uhd-6f9ce938de36476de68720e8090e9a92d0f2fefe.zip |
Merge branch 'work'
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/tune_helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/tune_helper.cpp b/host/lib/usrp/tune_helper.cpp index a7d695b4e..082c39f6d 100644 --- a/host/lib/usrp/tune_helper.cpp +++ b/host/lib/usrp/tune_helper.cpp @@ -46,7 +46,7 @@ static tune_result_t tune_xx_subdev_and_dxc( // Calculate the DDC setting that will downconvert the baseband from the // daughterboard to our target frequency. double delta_freq = target_freq - actual_inter_freq; - double delta_sign = std::signum(delta_freq); + int delta_sign = std::signum(delta_freq); delta_freq *= delta_sign; delta_freq = std::fmod(delta_freq, dxc_sample_rate); bool inverted = delta_freq > dxc_sample_rate/2.0; |