Update stopwatch.js
Fixed bug where one could reset lap log even though timer is runningmaster
parent
be539e5993
commit
06b98f0043
|
|
@ -92,11 +92,11 @@ setWatch(function() { // Lap
|
||||||
updateLabels();
|
updateLabels();
|
||||||
}, BTN1, {repeat:true});
|
}, BTN1, {repeat:true});
|
||||||
setWatch(function() { // Reset
|
setWatch(function() { // Reset
|
||||||
Bangle.beep();
|
|
||||||
if (!started) {
|
if (!started) {
|
||||||
|
Bangle.beep();
|
||||||
tStart = tCurrent = Date.now();
|
tStart = tCurrent = Date.now();
|
||||||
}
|
|
||||||
lapTimes = [];
|
lapTimes = [];
|
||||||
|
}
|
||||||
updateLabels();
|
updateLabels();
|
||||||
}, BTN3, {repeat:true});
|
}, BTN3, {repeat:true});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue