From 4523108293a909afb111436d8af41b679f1ba8b2 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 5 May 2026 22:00:10 +0200 Subject: [PATCH] Skip spectrum curve smoothing in manual mode (issue #333) --- App/app/spectrum.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/App/app/spectrum.c b/App/app/spectrum.c index 86e35c03..5cc0982b 100644 --- a/App/app/spectrum.c +++ b/App/app/spectrum.c @@ -1525,7 +1525,11 @@ static void BuildCurrentSpectrumTopY(uint8_t *topY) #endif BuildSpectrumTopY(topY, bars); - SmoothTopY(topY); + // Skip cosmetic smoothing in manual mode so the rendered curve matches + // the raw RSSI used by the squelch detector — narrow peaks must visibly + // cross the trigger line when the radio opens the squelch. + if (!manualSetFlag) + SmoothTopY(topY); } static void DrawStatus()