1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-05-30 05:52:24 -04:00

Corrected intempestive trigger on pre-trigger delay condition

This commit is contained in:
f4exb 2015-07-22 01:45:57 +02:00
parent 71cb2c22d4
commit e8708d00fd

View File

@ -82,7 +82,9 @@ void ScopeVis::feed(SampleVector::const_iterator begin, SampleVector::const_iter
while(begin < end)
{
bool trigger = triggerCondition(begin);
if ((trigger ^ !m_triggerPositiveEdge) && (m_tracebackCount > m_triggerPre))
if (m_tracebackCount > m_triggerPre)
{
if (trigger ^ !m_triggerPositiveEdge)
{
if (m_armed)
{
@ -101,6 +103,7 @@ void ScopeVis::feed(SampleVector::const_iterator begin, SampleVector::const_iter
{
m_armed = true;
}
}
++begin;
}
}