From 1ca81f46102247a7455253f486a9f62f87140c32 Mon Sep 17 00:00:00 2001 From: Steven Franke Date: Thu, 27 Jan 2022 09:23:00 -0600 Subject: [PATCH 1/2] Revert "Repair a defect where Auto Seq failed for messages with apriori code." This reverts commit 5118e64fde9cffff7442c69c33a9b27c10752a07. --- widgets/mainwindow.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 4ffc5c072..74fc157a2 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -8004,7 +8004,6 @@ void MainWindow::p1ReadFromStdout() //p1readFromStdout } else { int n=t.length(); - t=t.left(85); // truncate any apriori code t=t.mid(0,n-2) + " "; t.remove(QRegExp("\\s+$")); QStringList rxFields = t.split(QRegExp("\\s+")); From 78cd7824ae6ca89467e926a42843527c1fc5ee45 Mon Sep 17 00:00:00 2001 From: Steven Franke Date: Thu, 27 Jan 2022 09:23:32 -0600 Subject: [PATCH 2/2] Fix the failure to auto-sequence when a decode contains a low-confidence a-priori designator, such as "? a3". --- Decoder/decodedtext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Decoder/decodedtext.cpp b/Decoder/decodedtext.cpp index e65d34bd8..3c684f824 100644 --- a/Decoder/decodedtext.cpp +++ b/Decoder/decodedtext.cpp @@ -60,6 +60,8 @@ DecodedText::DecodedText (QString const& the_string) // qDebug () << "DecodedText: the_string:" << the_string << "Nbsp pos:" << the_string.indexOf (QChar::Nbsp); if (message_.length() >= 1) { +// remove appended confidence (?) and ap designators before truncating the message + message_ = clean_string_.mid (column_qsoText + padding_).trimmed (); message0_ = message_.left(37); message_ = message_.left(37).remove (QRegularExpression {"[<>]"}); int i1 = message_.indexOf ('\r');