Functional with bare-bones sfox_tx executable.

This commit is contained in:
Joe Taylor 2024-03-02 16:01:55 -05:00
parent 5948c0d024
commit 2f600ae198
3 changed files with 13 additions and 2 deletions

View File

@ -77,7 +77,7 @@ subroutine sfox_assemble(ntype,k,msg,mycall0,mygrid0,line)
line=trim(line)//' '//trim(hiscall(i))//' '//rpt2(i)
enddo
do i=1,nmsg(2)
line=trim(line)//' '//trim(hiscall(i))
line=trim(line)//' '//trim(hiscall(i+5))
enddo
endif

9
lib/superfox/sfox_tx.f90 Normal file
View File

@ -0,0 +1,9 @@
program sfox_tx
character*120 line
call getarg(1,line)
write(*,1000) trim(line)
1000 format(a)
end program sfox_tx

View File

@ -10304,7 +10304,7 @@ Transmit:
QString foxCall=m_config.my_callsign() + " ";
::memcpy(foxcom_.mycall, foxCall.toLatin1(),sizeof foxcom_.mycall); //Copy Fox callsign into foxcom_
bool bSuperFox=m_config.superFox();
qDebug() << "bb" << foxcom_.nslots << foxcom_.mycall << foxcom_.cmsg[0];
// qDebug() << "bb" << foxcom_.nslots << foxcom_.mycall << foxcom_.cmsg[0];
char cmnd[120];
foxgen_(&bSuperFox, cmnd, 120);
if(bSuperFox) {
@ -10892,5 +10892,7 @@ void MainWindow::sfox_tx(QString t)
p2.start("sfox_tx", QStringList {t});
p2.waitForFinished();
QString t2=p2.readAllStandardOutput();
t2=t2.left(t2.length()-2);
// qDebug() << "aa" << QDateTime::currentMSecsSinceEpoch() - ms0 << t2;
qDebug() << "aa" << t2;
}