mirror of https://github.com/espruino/BangleApps
Update widalt.settings.js
parent
9fb6c1b36f
commit
826064bfc1
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue