From e82e61d9ebd0c6e31db705d66eb63100ef48fa44 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Mon, 14 Sep 2020 18:15:10 +0200 Subject: [PATCH] Change level threshold to -6dB --- sa_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sa_core.c b/sa_core.c index 9c079a3..559e92c 100644 --- a/sa_core.c +++ b/sa_core.c @@ -2308,12 +2308,12 @@ sweep_again: // stay in sweep loop when output mo } else if (setting.measurement == M_PASS_BAND && markers[0].index > 10) { // ----------------Pass band measurement int t = markers[0].index; float v = actual_t[t]; - while (t > 0 && actual_t[t] > v - 3.0) // Find left -3dB point + while (t > 0 && actual_t[t] > v - 6.0) // Find left -3dB point t --; if (t > 0) markers[1].index = t; t = markers[0].index; - while (t < setting._sweep_points - 1 && actual_t[t] > v - 3.0) // find right -3dB point + while (t < setting._sweep_points - 1 && actual_t[t] > v - 6.0) // find right -3dB point t ++; if (t < setting._sweep_points - 1 ) markers[2].index = t;