mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-28 04:12:32 -04:00
Prevent tuning from being started at even periods when in SuperHound mode.
This commit is contained in:
parent
2ab36d0a13
commit
5053ddf063
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user