Don't switch Tx modes after a JT4 decode! Continued work on Echo mode.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5552 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2015-06-08 14:20:30 +00:00
parent 1ecc076e28
commit 493529ea42

View File

@ -566,6 +566,8 @@ MainWindow::MainWindow(bool multiple, QSettings * settings, QSharedMemory *shdme
m_hsymStop=396;
} else if(m_mode=="WSPR-15") {
m_hsymStop=3090;
} else if(m_mode=="Echo") {
m_hsymStop=10;
} else {
m_hsymStop=173;
if(m_config.decode_at_52s()) m_hsymStop=181;
@ -778,6 +780,8 @@ void MainWindow::dataSink(qint64 frames)
m_hsymStop=396;
} else if(m_mode=="WSPR-15") {
m_hsymStop=3090;
} else if(m_mode=="Echo") {
m_hsymStop=10;
} else {
m_hsymStop=173;
if(m_config.decode_at_52s()) m_hsymStop=181;
@ -788,6 +792,11 @@ void MainWindow::dataSink(qint64 frames)
}
if(ihsym == m_hsymStop) {
if(m_mode=="Echo") {
qDebug() << "call plotSpec()" << m_s6;
if(m_echoGraph->isVisible()) m_echoGraph->plotSpec();
return;
}
if( m_dialFreqRxWSPR==0) m_dialFreqRxWSPR=m_dialFreq;
m_dataAvailable=true;
jt9com_.npts8=(ihsym*m_nsps)/16;
@ -1681,9 +1690,11 @@ void MainWindow::readFromStdout() //readFromStdout
, m_config.color_DXCC()
, m_config.color_NewCall());
bool b65=decodedtext.isJT65();
if(b65 and m_modeTx!="JT65") on_pbTxMode_clicked();
if(!b65 and m_modeTx=="JT65") on_pbTxMode_clicked();
if(m_mode!="JT4") {
bool b65=decodedtext.isJT65();
if(b65 and m_modeTx!="JT65") on_pbTxMode_clicked();
if(!b65 and m_modeTx=="JT65") on_pbTxMode_clicked();
}
m_QSOText=decodedtext;
}
@ -3187,7 +3198,7 @@ void MainWindow::on_actionEcho_triggered()
m_modulator.setPeriod(m_TRperiod);
m_detector.setPeriod(m_TRperiod);
m_nsps=6912; //For symspec only
m_hsymStop=9;
m_hsymStop=10;
m_toneSpacing=1.0;
switch_mode(Modes::Echo);
m_modeTx="Echo";