From ce2dd10d45e41c62f3108987f5af2ffdfc38788a Mon Sep 17 00:00:00 2001 From: losehu <52628935+losehu@users.noreply.github.com> Date: Thu, 1 Feb 2024 22:29:27 +0800 Subject: [PATCH] The dbMax range is more stringent "If you want the dbMax value to always be greater than dbMin, there should be at least a '+1'." --- app/spectrum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/spectrum.c b/app/spectrum.c index cc892ae01..5e5a673bf 100644 --- a/app/spectrum.c +++ b/app/spectrum.c @@ -475,7 +475,7 @@ static void UpdateRssiTriggerLevel(bool inc) { static void UpdateDBMax(bool inc) { if (inc && settings.dbMax < 10) { settings.dbMax += 1; - } else if (!inc && settings.dbMax > settings.dbMin) { + } else if (!inc && settings.dbMax > 12+settings.dbMin) { settings.dbMax -= 1; } else { return;