mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 11:18:56 -05:00
One shot trigger optimization #2
This commit is contained in:
parent
d183599166
commit
461da9142d
@ -52,11 +52,7 @@ void ScopeVis::feed(SampleVector::const_iterator begin, SampleVector::const_iter
|
|||||||
{
|
{
|
||||||
if(m_triggerState == WaitForReset)
|
if(m_triggerState == WaitForReset)
|
||||||
{
|
{
|
||||||
if (!m_triggerOneShot) {
|
break;
|
||||||
m_triggerState = Untriggered;
|
|
||||||
} else {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(m_triggerState == Untriggered)
|
if(m_triggerState == Untriggered)
|
||||||
{
|
{
|
||||||
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user