From: Steinar H. Gunderson Date: Wed, 13 Feb 2019 19:03:55 +0000 (+0100) Subject: Fix parsing of status word. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a64de5e1112be71ac6bcca755912c669f6d531f8;p=ultimatescore Fix parsing of status word. --- diff --git a/client/mainwindow.cpp b/client/mainwindow.cpp index 3ea51a0..228fe6b 100644 --- a/client/mainwindow.cpp +++ b/client/mainwindow.cpp @@ -465,8 +465,8 @@ void MainWindow::bt6000_message_received(const string &msg, int port) 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 klaxon = (msg[4] & 0x04); + bool clock_running = !(msg[3] & 0x02); +// bool klaxon = (msg[3] & 0x04); int minutes = parse_clock(msg[5], msg[6]); int seconds = parse_clock(msg[7], msg[8]);