From a50df386b9e03f4639c5e9c2c46641df748a51ee Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sun, 19 Apr 2020 20:35:53 -0400 Subject: [PATCH] Fixed #330: only pause the decoder while actively transmitting --- mainwindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 155bf7b..84a0d74 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4204,8 +4204,11 @@ bool MainWindow::decode(qint32 k){ // TODO: what follows can likely be pulled out to an async process // - if(m_transmitting || !m_txFrameQueue.isEmpty() || m_txFrameCount > 0){ - // we used to use isMessageQueuedForTransmit, but it checks total frames, not queued frames + // pause decoder if we are currently transmitting + if(m_transmitting){ + // we used to use isMessageQueuedForTransmit, and some form of checking for queued messages + // but, that just caused problems with missing decodes, so we only pause if we are actually + // actively transmitting. if(JS8_DEBUG_DECODE) qDebug() << "--> decoder paused during transmit"; return false; }