Skip to content

Commit

Permalink
The dbMax range is more stringent
Browse files Browse the repository at this point in the history
"If you want the dbMax value to always be greater than dbMin, there should be at least a '+1'."
  • Loading branch information
losehu authored and egzumer committed Feb 1, 2024
1 parent a22760c commit ce2dd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/spectrum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ce2dd10

Please sign in to comment.