From b11514c54b7cc7bac47e37346bad27f723ac1cbd Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Sat, 8 Jun 2024 10:20:27 +0200 Subject: [PATCH] Reset color of the "Super Hound" label only when an unverified fox is transmitting (not when other hound messages are received). --- widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 4231cb786..d93f09201 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -4172,7 +4172,7 @@ void MainWindow::readFromStdout() //readFromStdout verified = true; ui->labDXped->setStyleSheet("QLabel {background-color: #00ff00; color: black;}"); } else { - verified = false; + if (decodedtext0.mid(5,2).contains("00") or decodedtext0.mid(5,2).contains("30")) verified = false; } if ((!verified && ui->labDXped->isVisible()) or ui->labDXped->text()!="Super Hound") ui->labDXped->setStyleSheet("QLabel {background-color: red; color: white;}");