Prevent tuning from being started at even periods when in SuperHound mode.

This commit is contained in:
Uwe Risse 2024-09-19 11:36:43 +02:00
parent 2ab36d0a13
commit 5053ddf063

View File

@ -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;