From b1e68468299b906e7f884befd93d6072638652bd Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 9 Nov 2018 11:39:02 -0500 Subject: [PATCH] Pad JT65 22-bit messages to 37-bit length, thus moving the end-of-line "f", etc. --- widgets/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index d7ec5841b..9835ae9f2 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -2933,6 +2933,7 @@ void MainWindow::readFromStdout() //readFromStdout { while(proc_jt9.canReadLine()) { QByteArray t=proc_jt9.readLine(); + if(m_mode=="JT65") t=t.left(43) + " " + t.mid(43,-1); //Pad 22-char msg to 37 chars // qint64 ms=QDateTime::currentMSecsSinceEpoch() - m_msec0; bool bAvgMsg=false; int navg=0; @@ -4273,7 +4274,8 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie bool is_73 = message_words.filter (QRegularExpression {"^(73|RR73)$"}).size (); if (!is_73 and !message.isStandardMessage() and !message.string().contains("<")) { - qDebug () << "Not processing message - hiscall:" << hiscall << "hisgrid:" << hisgrid; + qDebug () << "Not processing message - hiscall:" << hiscall << "hisgrid:" << hisgrid + << message.string() << message.isStandardMessage(); return; }