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();
|
||||
}, BTN1, {repeat:true});
|
||||
setWatch(function() { // Reset
|
||||
Bangle.beep();
|
||||
if (!started) {
|
||||
Bangle.beep();
|
||||
tStart = tCurrent = Date.now();
|
||||
}
|
||||
lapTimes = [];
|
||||
}
|
||||
updateLabels();
|
||||
}, BTN3, {repeat:true});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue