]> git.sesse.net Git - ultimatescore/commitdiff
Fix an issue when the BT-6000 autoresets the clock.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 17 Feb 2020 19:33:23 +0000 (20:33 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 17 Feb 2020 19:33:23 +0000 (20:33 +0100)
score.js

index 1d30924c2a444e2c9a49db503f94b88f284d8f3b..ab3e465cc74f10d98b0f7db17a6a8b21a0766635 100644 (file)
--- 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()