Skip to content

Commit

Permalink
Skip empty classes in pulse len calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Dec 29, 2022
1 parent 09990d6 commit bbe40ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ uint32_t search_coherent_signal(RawSamplesBuffer *s, uint32_t idx) {
* for visualization. */
for (int j = 0; j < SEARCH_CLASSES; j++) {
for (int level = 0; level < 2; level++) {
if (classes[j].dur[level] == 0) continue;
if (s->short_pulse_dur == 0 ||
s->short_pulse_dur > classes[j].dur[level])
{
Expand Down

0 comments on commit bbe40ea

Please sign in to comment.