summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/display_menu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c
index 60b06d7f4f..5114feafb0 100644
--- a/apps/menus/display_menu.c
+++ b/apps/menus/display_menu.c
@@ -427,6 +427,10 @@ static int peak_meter_scale(void) {
/* we only store -dBfs */
global_settings.peak_meter_min = -peak_meter_get_min() / 100;
global_settings.peak_meter_max = -peak_meter_get_max() / 100;
+
+ /* limit the returned value to the allowed range */
+ if(global_settings.peak_meter_min > 89)
+ global_settings.peak_meter_min = 89;
} else {
int max;