From f264f8e043fc4baa38f25f1705a949d80e81f616 Mon Sep 17 00:00:00 2001 From: xxDUxx <96152564+xxDUxx@users.noreply.github.com> Date: Wed, 3 Aug 2022 08:08:07 +0200 Subject: [PATCH] Update widalt.settings.js --- apps/widalt/widalt.settings.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/widalt/widalt.settings.js b/apps/widalt/widalt.settings.js index 28ed60bc2..2fcca1aa0 100644 --- a/apps/widalt/widalt.settings.js +++ b/apps/widalt/widalt.settings.js @@ -8,10 +8,7 @@ value: o.seaLevelPressure, min: 100, max: 10000, format: v=>(v+"hPa\nAlt: "+(44330 * (1.0 - Math.pow(p.pressure/v, 0.1903))).toFixed(0)+"m"), - onchange: v => { - o.seaLevelPressure = v; - Bangle.setOptions(o); - } + onchange: v => {Bangle.setOptions({seaLevelPressure:v});} } }); });