Remove unwanted setInterval for steps update
parent
7932107edf
commit
04e76db519
|
|
@ -87,9 +87,8 @@ exports.load = function() {
|
||||||
text : v, v : v, min : 0, max : stepGoal,
|
text : v, v : v, min : 0, max : stepGoal,
|
||||||
img : atob("GBiBAAcAAA+AAA/AAA/AAB/AAB/gAA/g4A/h8A/j8A/D8A/D+AfH+AAH8AHn8APj8APj8AHj4AHg4AADAAAHwAAHwAAHgAAHgAADAA==")
|
img : atob("GBiBAAcAAA+AAA/AAA/AAB/AAB/gAA/g4A/h8A/j8A/D8A/D+AfH+AAH8AHn8APj8APj8AHj4AHg4AADAAAHwAAHwAAHgAAHgAADAA==")
|
||||||
};},
|
};},
|
||||||
show : function() { stepUpdateInterval=setInterval(stepUpdateHandler,150000); stepUpdateHandler(); },
|
show : function() { Bangle.on("step", stepUpdateHandler); stepUpdateHandler(); },
|
||||||
hide : function() { clearInterval(stepUpdateInterval); },
|
hide : function() { Bangle.removeListener("step", stepUpdateHandler); },
|
||||||
run:stepUpdateHandler
|
|
||||||
},
|
},
|
||||||
{ name : "HRM",
|
{ name : "HRM",
|
||||||
hasRange : true,
|
hasRange : true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue