bikespeedo: fix locale units setting
parent
6107e9474c
commit
191c2c9998
|
|
@ -3,3 +3,4 @@
|
||||||
0.03: Use default Bangle formatter for booleans
|
0.03: Use default Bangle formatter for booleans
|
||||||
0.04: Add options for units in locale and recording GPS
|
0.04: Add options for units in locale and recording GPS
|
||||||
0.05: Allow toggling of "max" values (screen tap) and recording (button press)
|
0.05: Allow toggling of "max" values (screen tap) and recording (button press)
|
||||||
|
0.06: Fix local unit setting
|
||||||
|
|
|
||||||
|
|
@ -420,7 +420,7 @@ function updateClock() {
|
||||||
// Read settings.
|
// Read settings.
|
||||||
let cfg = require('Storage').readJSON('bikespeedo.json',1)||{};
|
let cfg = require('Storage').readJSON('bikespeedo.json',1)||{};
|
||||||
|
|
||||||
cfg.spd = !cfg.localeUnits; // Multiplier for speed unit conversions. 0 = use the locale values for speed
|
cfg.spd = cfg.localeUnits ? 0 : 1; // Multiplier for speed unit conversions. 0 = use the locale values for speed
|
||||||
cfg.spd_unit = 'km/h'; // Displayed speed unit
|
cfg.spd_unit = 'km/h'; // Displayed speed unit
|
||||||
cfg.alt = 1; // Multiplier for altitude unit conversions. (feet:'0.3048')
|
cfg.alt = 1; // Multiplier for altitude unit conversions. (feet:'0.3048')
|
||||||
cfg.alt_unit = 'm'; // Displayed altitude units ('feet')
|
cfg.alt_unit = 'm'; // Displayed altitude units ('feet')
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "bikespeedo",
|
"id": "bikespeedo",
|
||||||
"name": "Bike Speedometer (beta)",
|
"name": "Bike Speedometer (beta)",
|
||||||
"shortName": "Bike Speedometer",
|
"shortName": "Bike Speedometer",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "Shows GPS speed, GPS heading, Compass heading, GPS altitude and Barometer altitude from internal sources",
|
"description": "Shows GPS speed, GPS heading, Compass heading, GPS altitude and Barometer altitude from internal sources",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"screenshots": [{"url":"Screenshot.png"}],
|
"screenshots": [{"url":"Screenshot.png"}],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue