From 663ed600132d480ede80df449c78eefaafb4125b Mon Sep 17 00:00:00 2001 From: Brian Moran Date: Tue, 7 Mar 2023 10:55:40 -0800 Subject: [PATCH] once fox has been reset, don't process decodes until decoding period ended --- widgets/mainwindow.cpp | 10 ++++++++++ widgets/mainwindow.h | 1 + 2 files changed, 11 insertions(+) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 1f5c80dca..44cbc28ef 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -9221,6 +9221,7 @@ void MainWindow::FoxReset(QString reason="") m_houndQueue.clear(); m_foxQSO.clear(); m_foxQSOinProgress.clear(); + m_discard_decoded_hounds_this_cycle = true; // discard decoded messages until the next cycle if (reason != "") writeFoxQSO(" " + reason); writeFoxQSO(" Reset"); } @@ -9400,6 +9401,15 @@ void MainWindow::houndCallers() * Distance, Age, and Continent) to a list, sort the list by specified criteria, * and display the top N_Hounds entries in the left text window. */ + // if frequency was changed in the middle of an interval, there's a flag set to ignore the decodes. Reset it here + // + + if (m_discard_decoded_hounds_this_cycle) + { + m_discard_decoded_hounds_this_cycle = false; // + return; // don't use these decodes + } + QFile f(m_config.temp_dir().absoluteFilePath("houndcallers.txt")); if(f.open(QIODevice::ReadOnly | QIODevice::Text)) { QTextStream s(&f); diff --git a/widgets/mainwindow.h b/widgets/mainwindow.h index 3243e1e3f..34f516630 100644 --- a/widgets/mainwindow.h +++ b/widgets/mainwindow.h @@ -565,6 +565,7 @@ private: bool m_bBestSPArmed=false; bool m_bOK_to_chk=false; bool m_bSentReport=false; + bool m_discard_decoded_hounds_this_cycle=false; // if something changes, like frequency, discard decoded messages that may be in-flight. SpecOp m_specOp;