summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-14 10:44:50 -0700
committerJosh Blum <josh@joshknows.com>2010-06-14 10:44:50 -0700
commit0c6fbdfe3738e2d15b369fbd28d51ee0115628f9 (patch)
tree16e6c263f55957887ec57da055f27c2cb65f1b23 /host/lib/usrp
parent126444c564d30d65116be5f772bdf47594d62884 (diff)
downloaduhd-0c6fbdfe3738e2d15b369fbd28d51ee0115628f9.tar.gz
uhd-0c6fbdfe3738e2d15b369fbd28d51ee0115628f9.tar.bz2
uhd-0c6fbdfe3738e2d15b369fbd28d51ee0115628f9.zip
work on algorithms and documentation
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/tune_helper.cpp2
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;