From 65f07004b5e60ba95c90dd7fbfb23a03775c4832 Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Wed, 17 Jan 2024 06:51:50 +0000 Subject: [PATCH] always run calc_peaks on FFT bucket handle remainder. --- lib/retune_fft_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/retune_fft_impl.cc b/lib/retune_fft_impl.cc index a746d821..27d73f88 100644 --- a/lib/retune_fft_impl.cc +++ b/lib/retune_fft_impl.cc @@ -482,7 +482,7 @@ void retune_fft_impl::write_buckets_(double host_now, uint64_t rx_freq) { void retune_fft_impl::process_buckets_(uint64_t rx_freq, double rx_time) { if (last_rx_freq_ && sample_count_) { reopen_(rx_time, rx_freq); - if (peak_fft_range_ == 0 || sample_count_ >= peak_fft_range_) { + if (sample_count_) { calc_peaks_(); } write_buckets_(rx_time, rx_freq);