Skip to content

Commit

Permalink
Merge pull request #2963 from bobrippling/bikespeedo-localunits
Browse files Browse the repository at this point in the history
bikespeedo: fix locale units setting
  • Loading branch information
gfwilliams authored Aug 11, 2023
2 parents 0bfe990 + 191c2c9 commit 5678594
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/bikespeedo/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
0.03: Use default Bangle formatter for booleans
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.06: Fix local unit setting
2 changes: 1 addition & 1 deletion apps/bikespeedo/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function updateClock() {
// Read settings.
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.alt = 1; // Multiplier for altitude unit conversions. (feet:'0.3048')
cfg.alt_unit = 'm'; // Displayed altitude units ('feet')
Expand Down
2 changes: 1 addition & 1 deletion apps/bikespeedo/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "bikespeedo",
"name": "Bike Speedometer (beta)",
"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",
"icon": "app.png",
"screenshots": [{"url":"Screenshot.png"}],
Expand Down

0 comments on commit 5678594

Please sign in to comment.