diff --git a/scan/dft_detect.c b/scan/dft_detect.c index 1e4fe2e..d34a3a8 100644 --- a/scan/dft_detect.c +++ b/scan/dft_detect.c @@ -168,8 +168,6 @@ static float *ws_lpIQ[2]; static int dsp__lpIQtaps; // ui32_t static float complex *lpIQ_buf; -static float complex *iq_buf; - static void dft_raw(float complex *Z) { int s, l, l2, i, j, k; @@ -981,8 +979,6 @@ static int free_buffers() { } if (Y) { free(Y); Y = NULL; } - if (iq_buf) { free(iq_buf); iq_buf = NULL; } - for (j = 0; j < 1; j++) { if (ws_lpIQ[j]) { free(ws_lpIQ[j]); ws_lpIQ[j] = NULL; } } diff --git a/scan/scan_fft_pow.c b/scan/scan_fft_pow.c index 02c42fc..81346d0 100644 --- a/scan/scan_fft_pow.c +++ b/scan/scan_fft_pow.c @@ -610,7 +610,12 @@ int main(int argc, char **argv) { if ( mag < 0 ) mag = 0; if (1 || option_verbose) fprintf(fpout, " ; %d", mag); - if (mag0 > 0 && mag == 0) fprintf(OUT, "peak: %+9.6f = %+9.1fHz\n", bin2fq(&DFT, max_db_idx), bin2freq(&DFT, max_db_idx)); + if (mag0 > 0 && mag == 0) { + if ( fabs(bin2fq(&DFT, max_db_idx)) < 0.425 ) // 85% bandwidth + { + fprintf(OUT, "peak: %+9.6f = %+9.1fHz\n", bin2fq(&DFT, max_db_idx), bin2freq(&DFT, max_db_idx)); + } + } if (mag0 == 0 && mag > 0) { max_db_loc = sympeak; max_db_idx = j % DFT.N;