1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-08-03 06:22:25 -04:00

One shot trigger optimization #2

This commit is contained in:
f4exb 2015-07-14 02:56:54 +02:00
parent d183599166
commit 461da9142d

View File

@ -52,12 +52,8 @@ void ScopeVis::feed(SampleVector::const_iterator begin, SampleVector::const_iter
{ {
if(m_triggerState == WaitForReset) if(m_triggerState == WaitForReset)
{ {
if (!m_triggerOneShot) {
m_triggerState = Untriggered;
} else {
break; break;
} }
}
if(m_triggerState == Untriggered) if(m_triggerState == Untriggered)
{ {
while(begin < end) while(begin < end)
@ -185,4 +181,8 @@ bool ScopeVis::triggerCondition(SampleVector::const_iterator& it)
void ScopeVis::setOneShot(bool oneShot) void ScopeVis::setOneShot(bool oneShot)
{ {
m_triggerOneShot = oneShot; m_triggerOneShot = oneShot;
if ((m_triggerState == WaitForReset) && !oneShot) {
m_triggerState = Untriggered;
}
} }