From 5053ddf0633f008202efe1e7ef9e77776fdefea0 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Thu, 19 Sep 2024 11:36:43 +0200 Subject: [PATCH] Prevent tuning from being started at even periods when in SuperHound mode. --- widgets/mainwindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 3335aa368..211e24582 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -8440,6 +8440,15 @@ void MainWindow::on_rptSpinBox_valueChanged(int n) void MainWindow::on_tuneButton_clicked (bool checked) { + // prevent tuning on top of a SuperFox message + if (SpecOp::HOUND==m_specOp && m_config.superFox()) { + QDateTime now = QDateTime::currentDateTimeUtc(); + int s = now.time().toString("ss").toInt(); + if ((s >= 0 && s < 15) || (s >= 30 && s < 45)) { + if (checked) ui->tuneButton->click (); + return; + } + } stopWRTimer.stop(); // stop a running Tx3 timer static bool lastChecked = false; if (lastChecked == checked) return;