Skip to content

Commit 04bc4dd

Browse files
authored
Merge pull request #3411 from espruino/revert-3384-fix/exstats-steps
Revert "exstats: fix steps being negative"
2 parents e2ecb58 + 208f049 commit 04bc4dd

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

apps/run/ChangeLog

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@
1717
0.16: Added ability to resume a run that was stopped previously (fix #1907)
1818
0.17: Ensure screen redraws after "Resume run?" menu (#3044)
1919
0.18: Minor code improvements
20-
0.19: Fix step count bug when runs are resumed after a long time

apps/run/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ "id": "run",
22
"name": "Run",
3-
"version": "0.19",
3+
"version": "0.18",
44
"description": "Displays distance, time, steps, cadence, pace and more for runners.",
55
"icon": "app.png",
66
"tags": "run,running,fitness,outdoors,gps",

apps/runplus/ChangeLog

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ Write to correct settings file, fixing settings not working.
2424
0.21: Rebase on "Run" app ver. 0.16.
2525
0.22: Ensure screen redraws after "Resume run?" menu (#3044)
2626
0.23: Minor code improvements
27-
0.24: Add indicators for lock,gps and pulse to karvonen screen
28-
0.25: Fix step count bug when runs are resumed after a long time
27+
0.24: Add indicators for lock,gps and pulse to karvonen screen

apps/runplus/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "runplus",
33
"name": "Run+",
4-
"version": "0.25",
4+
"version": "0.24",
55
"description": "Displays distance, time, steps, cadence, pace and more for runners. Based on the Run app, but extended with additional screen for heart rate interval training.",
66
"icon": "app.png",
77
"tags": "run,running,fitness,outdoors,gps,karvonen,karvonnen",

modules/exstats.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ var stats = {};
102102
const DATA_FILE = "exstats.json";
103103
// Load the state from a saved file if there was one
104104
state = Object.assign(state, require("Storage").readJSON(DATA_FILE,1)||{});
105-
state.startSteps = Bangle.getStepCount() - (state.lastSteps - state.startSteps);
106105
// force step history to a uint8array
107106
state.stepHistory = new Uint8Array(state.stepHistory);
108107
// when we exit, write the current state

0 commit comments

Comments
 (0)