From 06b98f0043e99446c5c77b82b3d974ff38fa2c56 Mon Sep 17 00:00:00 2001 From: Red-The-Hunter <62763030+Red-The-Hunter@users.noreply.github.com> Date: Sat, 28 Mar 2020 12:14:40 +0800 Subject: [PATCH] Update stopwatch.js Fixed bug where one could reset lap log even though timer is running --- apps/swatch/stopwatch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/swatch/stopwatch.js b/apps/swatch/stopwatch.js index 73cf0adfc..d4136d8ed 100644 --- a/apps/swatch/stopwatch.js +++ b/apps/swatch/stopwatch.js @@ -92,11 +92,11 @@ setWatch(function() { // Lap updateLabels(); }, BTN1, {repeat:true}); setWatch(function() { // Reset - Bangle.beep(); if (!started) { - tStart = tCurrent = Date.now(); - } + Bangle.beep(); + tStart = tCurrent = Date.now(); lapTimes = []; + } updateLabels(); }, BTN3, {repeat:true});