mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-04 14:08:38 +00:00
implement minimum waterfall range
This commit is contained in:
parent
36cf6097b3
commit
9f9a5ceaa3
2 changed files with 6 additions and 3 deletions
|
|
@ -104,8 +104,11 @@ function waterfallColorsDefault() {
|
|||
}
|
||||
|
||||
function waterfallColorsAuto(levels) {
|
||||
$("#openwebrx-waterfall-color-min").val(levels.min - waterfall_auto_level_margin.min);
|
||||
$("#openwebrx-waterfall-color-max").val(levels.max + waterfall_auto_level_margin.max);
|
||||
var min_level = levels.min - waterfall_auto_level_margin.min;
|
||||
$("#openwebrx-waterfall-color-min").val(min_level);
|
||||
var max_level = levels.max + waterfall_auto_level_margin.max;
|
||||
max_level = Math.max(min_level + (waterfall_auto_level_margin.min_range || 0), max_level);
|
||||
$("#openwebrx-waterfall-color-max").val(max_level);
|
||||
updateWaterfallColors(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue