From b7ee047a56acaa536d9c633a2972ca5b8cc86aa1 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Mon, 8 Feb 2021 15:16:26 +0100 Subject: [PATCH] Decrease auto atten if no maximum found --- sa_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa_core.c b/sa_core.c index 5bc9064..a27a0e0 100644 --- a/sa_core.c +++ b/sa_core.c @@ -2363,7 +2363,7 @@ sweep_again: // stay in sweep loop when output mo #define AUTO_TARGET_LEVEL -25 #define AUTO_TARGET_WINDOW 2 - if (!in_selftest && setting.mode == M_LOW && setting.auto_attenuation && max_index[0] > 0) { // calculate and apply auto attenuate + if (!in_selftest && setting.mode == M_LOW && setting.auto_attenuation) { // calculate and apply auto attenuate setting.atten_step = false; // No step attenuate in low mode auto attenuate int changed = false; int delta = 0;