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'."
This commit is contained in:
losehu
2024-02-01 22:29:27 +08:00
committed by egzumer
parent a22760c0b4
commit ce2dd10d45

View File

@@ -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;