Skip to content

Commit

Permalink
always run calc_peaks on FFT bucket handle remainder.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Jan 17, 2024
1 parent ec32405 commit 65f0700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/retune_fft_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 65f0700

Please sign in to comment.