migrate waterfall settings away from tuples

This commit is contained in:
Jakob Ketterl
2020-03-29 18:49:13 +02:00
parent 1d5f450f74
commit 056a8a3289
3 changed files with 17 additions and 12 deletions

View File

@ -171,8 +171,8 @@ function waterfallColorsDefault() {
}
function waterfallColorsAuto() {
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();
e("openwebrx-waterfall-color-min").value = (waterfall_measure_minmax_min - waterfall_auto_level_margin.min).toString();
e("openwebrx-waterfall-color-max").value = (waterfall_measure_minmax_max + waterfall_auto_level_margin.max).toString();
updateWaterfallColors(0);
}