Fix step count
parent
597d1172be
commit
54ca2eed97
|
|
@ -119,6 +119,7 @@ Bangle.on("GPS", function(fix) {
|
||||||
Bangle.on("step", function(steps) {
|
Bangle.on("step", function(steps) {
|
||||||
if (!state.active) return;
|
if (!state.active) return;
|
||||||
if (stats["step"]) stats["step"].emit("changed",stats["step"]);
|
if (stats["step"]) stats["step"].emit("changed",stats["step"]);
|
||||||
|
state.stepHistory[0] += steps-state.lastStepCount;
|
||||||
state.lastStepCount = steps;
|
state.lastStepCount = steps;
|
||||||
});
|
});
|
||||||
Bangle.on("HRM", function(h) {
|
Bangle.on("HRM", function(h) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue