From 826064bfc16ba8613bdc60ddb0358093fc6b6387 Mon Sep 17 00:00:00 2001 From: xxDUxx <96152564+xxDUxx@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:15:40 +0200 Subject: [PATCH] Update widalt.settings.js --- apps/widalt/widalt.settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/widalt/widalt.settings.js b/apps/widalt/widalt.settings.js index a9b57bd88..28ed60bc2 100644 --- a/apps/widalt/widalt.settings.js +++ b/apps/widalt/widalt.settings.js @@ -5,7 +5,7 @@ "" : { "title" : "Altimeter Widget" }, "< Back" : () => back(), 'QNH: ': { - value: 1013 | o.seaLevelPressure, // 0| converts undefined to 0 + 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 => {