Fix errors in Fox message logic; default No Dupes.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8337 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2017-12-16 20:56:42 +00:00
parent bceb795d04
commit 44377f3031
3 changed files with 16 additions and 7 deletions

View File

@ -79,8 +79,10 @@ subroutine multimode_decoder(ss,id2,params,nfsample)
logical(params%lft8apon),logical(params%lapcqonly),params%napwid, &
params%mycall,params%mygrid,params%hiscall,params%hisgrid)
call timer('decft8 ',1)
n15min=minval(n15fox(1:nfox))
n15max=maxval(n15fox(1:nfox))
if(nfox.gt.0) then
n15min=minval(n15fox(1:nfox))
n15max=maxval(n15fox(1:nfox))
endif
j=0
rewind 19
if(nfox.eq.0) then
@ -229,7 +231,8 @@ subroutine multimode_decoder(ss,id2,params,nfsample)
write(*,1010) nsynced,ndecoded
1010 format('<DecodeFinished>',2i4)
call flush(6)
close(13)
close(13)
close(19)
if(params%nmode.eq.4 .or. params%nmode.eq.65) close(14)
return

View File

@ -899,6 +899,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
splashTimer.setSingleShot (true);
splashTimer.start (20 * 1000);
/*
if(m_config.my_callsign()=="K1JT" or m_config.my_callsign()=="K9AN" or
m_config.my_callsign()=="G4WJS" || m_config.my_callsign () == "W9XYZ") {
ui->actionWSPR_LF->setEnabled(true);
@ -910,6 +911,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
"Please use WSJT-X v1.8.0\n", errorMsg);
Q_EMIT finished ();
}
*/
if(!ui->cbMenus->isChecked()) {
ui->cbMenus->setChecked(true);
@ -3715,7 +3717,7 @@ void MainWindow::stopTx2()
m_ntr=0;
}
last_tx_label.setText("Last Tx: " + m_currentMessage.trimmed());
if(m_mode=="FT8" and m_config.bHound()) auto_tx_mode(false);
//### if(m_mode=="FT8" and m_config.bHound()) auto_tx_mode(false); ###
}
void MainWindow::ba2msg(QByteArray ba, char message[]) //ba2msg()
@ -7371,7 +7373,7 @@ void MainWindow::foxRxSequencer(DecodedText decodedtext, QString houndCall, QStr
if(m_foxMsgSent[i].contains(houndCall + " ")) {
m_houndRptRcvd[i]=houndGrid.mid(1);
int i1=qMax(m_foxMsgSent[i].indexOf("+"), m_foxMsgSent[i].indexOf("-"));
m_foxMsgToBeSent[i]=m_foxMsgSent[i].mid(0,i1-1) + " RR73";
if(i1>7) m_foxMsgToBeSent[i]=m_foxMsgSent[i].mid(0,i1-1) + " RR73";
} else {
m_foxMsgToBeSent[i]=m_foxMsgSent[i];
}
@ -7413,6 +7415,7 @@ TxTimeout:
}
}
if(fm.contains(" RR73")) {
// Log this QSO!
@ -7422,8 +7425,6 @@ TxTimeout:
m_rptRcvd=m_houndRptRcvd[i];
qDebug() << "Logged by Fox:" << i << m_hisCall << m_hisGrid << m_rptSent << m_rptRcvd << m_lastBand;
on_logQSOButton_clicked();
m_houndCall[i]="";
m_houndGrid[i]="";
m_loggedByFox[m_hisCall] += (m_lastBand + " ");
//Find someone to call next
@ -7438,6 +7439,8 @@ TxTimeout:
} else {
//Default to a standard (i3bit=0) message if queue is empty
fm=m_houndCall[i] + " " + m_config.my_callsign() + " RR73";
m_houndCall[i]="";
m_houndGrid[i]="";
}
}
if(!fm.contains(";")) {

View File

@ -1920,6 +1920,9 @@ list. The list can be maintained in Settings (F2).</string>
<property name="text">
<string>No Dupes</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>