From 6aacfa2cc92e40541ac4c5f50a938b1df6e5d2dc Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Thu, 16 Feb 2017 12:06:52 -0700 Subject: [PATCH] corrected maximum permitted number of FFT bins Fixes #346 --- 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 4c5da9c1..bd892951 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -484,9 +484,9 @@ int main(int argc, char** argv) { return EXIT_FAILURE; } - if(16368 < fftSize) { + if(8184 < fftSize) { fprintf(stderr, - "argument error: FFT bin width (-w) too small, resulted in more than 16368 FFT bins\n"); + "argument error: FFT bin width (-w) too small, resulted in more than 8184 FFT bins\n"); return EXIT_FAILURE; }