Fixed auto waterfall levels for this color scheme; added waterfall_auto_level_margin option to config_webrx

This commit is contained in:
ha7ilm
2016-10-30 10:14:27 +01:00
parent a31d4b9fe2
commit 943fa47a1c
4 changed files with 15 additions and 3 deletions

View File

@ -183,8 +183,8 @@ function waterfallColorsDefault()
function waterfallColorsAuto()
{
e("openwebrx-waterfall-color-min").value=(waterfall_measure_minmax_min-20).toString();
e("openwebrx-waterfall-color-max").value=(waterfall_measure_minmax_max+30).toString();
e("openwebrx-waterfall-color-min").value=(waterfall_measure_minmax_min-waterfall_auto_level_margin[0]).toString();
e("openwebrx-waterfall-color-max").value=(waterfall_measure_minmax_max+waterfall_auto_level_margin[1]).toString();
updateWaterfallColors(0);
}