From: Steinar H. Gunderson Date: Mon, 17 Feb 2020 19:33:23 +0000 (+0100) Subject: Fix an issue when the BT-6000 autoresets the clock. X-Git-Url: https://git.sesse.net/?p=ultimatescore;a=commitdiff_plain;h=3f45b7b4478cb6e69b311d2bf1ad670bace19589 Fix an issue when the BT-6000 autoresets the clock. --- diff --git a/score.js b/score.js index 1d30924..ab3e465 100644 --- a/score.js +++ b/score.js @@ -87,6 +87,12 @@ function setclock(num, amount) clocks[num].elapsed = amount; clocks[num].origin = Date.now(); update_clock(num); + + // The BT-6000 likes to reset to 0:00 a while after the match is over, + // so go hide it then. + if (num == 0 && !clocks[num].running) { + hideclock(); + } } function setclockfromstate()