Fixed #330: only pause the decoder while actively transmitting
This commit is contained in:
parent
dab46fce6b
commit
a50df386b9
@ -4204,8 +4204,11 @@ bool MainWindow::decode(qint32 k){
|
|||||||
// TODO: what follows can likely be pulled out to an async process
|
// TODO: what follows can likely be pulled out to an async process
|
||||||
//
|
//
|
||||||
|
|
||||||
if(m_transmitting || !m_txFrameQueue.isEmpty() || m_txFrameCount > 0){
|
// pause decoder if we are currently transmitting
|
||||||
// we used to use isMessageQueuedForTransmit, but it checks total frames, not queued frames
|
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";
|
if(JS8_DEBUG_DECODE) qDebug() << "--> decoder paused during transmit";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user