From 93201702d66ab1e3c3a9a4a23a3c7ece8d52c796 Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Sat, 4 Feb 2017 10:30:33 -0700 Subject: [PATCH] too few Hz --- host/hackrf-tools/src/hackrf_sweep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index f0ae1389..06e4441b 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -201,7 +201,7 @@ int rx_callback(hackrf_transfer* transfer) { * write output to pipe */ int8_t* buf; - uint16_t frequency; + uint16_t frequency; /* in MHz */ float float_freq; int i, j; @@ -215,7 +215,7 @@ int rx_callback(hackrf_transfer* transfer) { buf += SAMPLES_PER_BLOCK; break; } - if((FREQ_MAX_HZ < frequency)) { + if(FREQ_MAX_HZ < (FREQ_ONE_MHZ*frequency)) { buf += SAMPLES_PER_BLOCK; break; }