Reset Tx watchdog when changing bands

Also disable "Enable Tx" when changing bands.

Thanks to Mike W9MDB for contributions to this patch.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6311 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-12-24 13:33:29 +00:00
parent b98b4ae299
commit 3c869e4c53

View File

@ -3920,12 +3920,15 @@ void MainWindow::on_bandComboBox_activated (int index)
void MainWindow::band_changed (Frequency f)
{
if (m_bandEdited) {
ui->stopTxButton->click(); // halt any transmission
auto_tx_mode (false); // disable auto Tx
m_bandEdited = false;
psk_Reporter->sendReport(); // Upload any queued spots before changing band
if (!m_transmitting) monitor (true);
Q_EMIT m_config.transceiver_frequency (f);
qsy (f);
setXIT (ui->TxFreqSpinBox->value ());
m_repeatMsg = 0; // reset Tx watchdog
}
}