]> git.sesse.net Git - ultimatescore/commitdiff
Correct BT6000 clock status bit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Oct 2018 11:50:48 +0000 (13:50 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Oct 2018 11:50:48 +0000 (13:50 +0200)
client/mainwindow.cpp

index b186e6a6309d5b680b8e5c9d306b071b7f5aeada..7de922c5c614710ca03053183168286f0044b996 100644 (file)
@@ -436,7 +436,7 @@ void MainWindow::bt6000_message_received(const string &msg)
 
        if (msg.size() >= 9 && msg[0] == 'G' && msg[1] == '0' && msg[2] == '1') {
                // G01: Game clock, period number, and number of time-outs.
-               bool clock_running = (msg[4] & 0x02);
+               bool clock_running = !(msg[4] & 0x02);
 //             bool klaxon = (msg[4] & 0x04);
                int minutes = parse_clock(msg[5], msg[6]);
                int seconds = parse_clock(msg[7], msg[8]);