WIP toward moving the conversion from old Fox messages to new command string in the new external program sfox_tx.

This commit is contained in:
Joe Taylor 2024-03-03 08:50:42 -05:00
parent 2f600ae198
commit ed248eb702
2 changed files with 19 additions and 1 deletions

View File

@ -10894,5 +10894,22 @@ void MainWindow::sfox_tx(QString t)
QString t2=p2.readAllStandardOutput();
t2=t2.left(t2.length()-2);
// qDebug() << "aa" << QDateTime::currentMSecsSinceEpoch() - ms0 << t2;
qDebug() << "aa" << t2;
// qDebug() << "aa" << t2;
p4.start("sfox_tx2",QStringList {""});
p4.waitForStarted();
QString t0;
for(int i=0; i<foxcom_.nslots; i++) {
foxcom_.cmsg[i][39]=0;
t0=t0.asprintf("%s\n",foxcom_.cmsg[i]).trimmed();
// qDebug() << i << t0;
p4.write(t0.toLatin1());
}
p4.closeWriteChannel();
p4.waitForFinished();
QString t4;
t4=p4.readAllStandardOutput();
// for(int i=0; i<foxcom_.nslots; i++) {
// t4=p4.readLine();
// t4=t4.left(t2.length()-2);
qDebug() << "bb" << t4;
}

View File

@ -624,6 +624,7 @@ private:
NonInheritingProcess p3;
QProcess p2;
QProcess p4;
WSPRNet *wsprNet;