From c3c8bff0171104769f6af1d5b090c61c328aafdb Mon Sep 17 00:00:00 2001 From: Maximilien Cuony Date: Thu, 15 Sep 2016 19:27:14 +0200 Subject: Fix only_zero_in_audio_buffer condition --- src/common/src/Core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/src/Core/main.c b/src/common/src/Core/main.c index 417c7af..17576cc 100644 --- a/src/common/src/Core/main.c +++ b/src/common/src/Core/main.c @@ -517,7 +517,7 @@ static void exercise_fsm(void __attribute__ ((unused))*pvParameters) last_tm_trigger_button = tm_trigger_button; const int cw_psk31_done = !cw_psk31_busy(); - const int cw_done = cw_psk31_done || only_zero_in_audio_buffer; + const int cw_done = cw_psk31_done && only_zero_in_audio_buffer; // Set the done flag to 1 only once, when cw_done switches from 0 to 1 if (last_cw_done != cw_done) { -- cgit v1.2.3