Skip to content

Commit

Permalink
Merge pull request #187 from anarkiwi/rem
Browse files Browse the repository at this point in the history
always run calc_peaks on FFT bucket handle remainder.
  • Loading branch information
anarkiwi authored Jan 17, 2024
2 parents ec32405 + 65f0700 commit 617d753
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 617d753

Please sign in to comment.