mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-27 14:48:46 -05:00
Do not set split Tx frequency when rig changes frequency.
WSJT-X was attempting to set the split Tx frequency when a dial change from the rig is detected. Because of the way some rigs and rig servers report the Tx frequency while the rig is in Tx mode this was causing the rig to "walk" along the band. Setting of split Tx frequency has been limited to WSJT-X initiated instances only. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4350 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
a576aa3c06
commit
9295796134
@ -837,33 +837,35 @@ void MainWindow::bumpFqso(int n) //bumpFqso()
|
||||
|
||||
void MainWindow::qsy (Frequency f)
|
||||
{
|
||||
if (m_monitoring || m_transmitting)
|
||||
if (!m_transmitting)
|
||||
{
|
||||
m_lastMonitoredFrequency = f;
|
||||
}
|
||||
|
||||
if (m_dialFreq != f)
|
||||
{
|
||||
m_dialFreq = f;
|
||||
setXIT(ui->TxFreqSpinBox->value ());
|
||||
|
||||
m_repeatMsg=0;
|
||||
m_secBandChanged=QDateTime::currentMSecsSinceEpoch()/1000;
|
||||
|
||||
QFile f2(m_config.data_path ().absoluteFilePath ("ALL.TXT"));
|
||||
f2.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
||||
QTextStream out(&f2);
|
||||
out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm")
|
||||
<< " " << (m_dialFreq / 1.e6) << " MHz " << m_mode << endl;
|
||||
f2.close();
|
||||
if (m_config.spot_to_psk_reporter ())
|
||||
if (m_monitoring)
|
||||
{
|
||||
pskSetLocal ();
|
||||
m_lastMonitoredFrequency = f;
|
||||
}
|
||||
|
||||
displayDialFrequency ();
|
||||
statusChanged();
|
||||
m_wideGraph->setDialFreq(m_dialFreq / 1.e6);
|
||||
if (m_dialFreq != f)
|
||||
{
|
||||
m_dialFreq = f;
|
||||
|
||||
m_repeatMsg=0;
|
||||
m_secBandChanged=QDateTime::currentMSecsSinceEpoch()/1000;
|
||||
|
||||
QFile f2(m_config.data_path ().absoluteFilePath ("ALL.TXT"));
|
||||
f2.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
||||
QTextStream out(&f2);
|
||||
out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm")
|
||||
<< " " << (m_dialFreq / 1.e6) << " MHz " << m_mode << endl;
|
||||
f2.close();
|
||||
if (m_config.spot_to_psk_reporter ())
|
||||
{
|
||||
pskSetLocal ();
|
||||
}
|
||||
|
||||
displayDialFrequency ();
|
||||
statusChanged();
|
||||
m_wideGraph->setDialFreq(m_dialFreq / 1.e6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2512,6 +2514,7 @@ void MainWindow::band_changed (Frequency f)
|
||||
|
||||
Q_EMIT m_config.transceiver_frequency (f);
|
||||
qsy (f);
|
||||
setXIT (ui->TxFreqSpinBox->value ());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user