mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-23 04:44:53 -04:00
Scope: fixed one shot trigger: Fixes #650
This commit is contained in:
parent
40bd300baf
commit
6649da7f99
@ -224,6 +224,13 @@ void ScopeVis::feed(const SampleVector::const_iterator& cbegin, const SampleVect
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_triggerWaitForReset)
|
||||
{
|
||||
m_triggerLocation = 0;
|
||||
m_mutex.unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_freeRun) {
|
||||
m_triggerLocation = end - cbegin;
|
||||
}
|
||||
@ -233,9 +240,6 @@ void ScopeVis::feed(const SampleVector::const_iterator& cbegin, const SampleVect
|
||||
else if (m_triggerState == TriggerUntriggered) {
|
||||
m_triggerLocation = 0;
|
||||
}
|
||||
else if (m_triggerWaitForReset) {
|
||||
m_triggerLocation = 0;
|
||||
}
|
||||
else {
|
||||
m_triggerLocation = end - cbegin;
|
||||
}
|
||||
@ -858,11 +862,15 @@ bool ScopeVis::handleMessage(const Message& message)
|
||||
}
|
||||
else if (MsgScopeVisNGOneShot::match(message))
|
||||
{
|
||||
qDebug() << "ScopeVis::handleMessage: MsgScopeVisNGOneShot";
|
||||
MsgScopeVisNGOneShot& conf = (MsgScopeVisNGOneShot&) message;
|
||||
bool oneShot = conf.getOneShot();
|
||||
qDebug() << "ScopeVis::handleMessage: MsgScopeVisNGOneShot: oneShot:" << oneShot;
|
||||
m_triggerOneShot = oneShot;
|
||||
if (m_triggerWaitForReset && !oneShot) m_triggerWaitForReset = false;
|
||||
|
||||
if (m_triggerWaitForReset && !oneShot) {
|
||||
m_triggerWaitForReset = false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (MsgScopeVisNGMemoryTrace::match(message))
|
||||
|
Loading…
Reference in New Issue
Block a user