From 581b6b63b28cda24505f14364096175fef58a08d Mon Sep 17 00:00:00 2001 From: Kyle Keen Date: Tue, 2 Sep 2014 05:39:31 -0400 Subject: [PATCH] rtl_fm: pad out single channel underruns --- src/rtl_fm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rtl_fm.c b/src/rtl_fm.c index 960fff5..1ef5c71 100644 --- a/src/rtl_fm.c +++ b/src/rtl_fm.c @@ -927,7 +927,8 @@ static void *demod_thread_fn(void *arg) if (d->exit_flag) { do_exit = 1; } - if (d->squelch_level && d->squelch_hits > d->conseq_squelch) { + if (controller.freq_len > 1 && d->squelch_level && \ + d->squelch_hits > d->conseq_squelch) { unmark_shared_buffer(d->lowpassed); d->squelch_hits = d->conseq_squelch + 1; /* hair trigger */ safe_cond_signal(&controller.hop, &controller.hop_m);