Skip to content

Commit

Permalink
Scope: removed breaking optimization thus fixing trigger. Should fix …
Browse files Browse the repository at this point in the history
…issue #233
  • Loading branch information
f4exb committed Oct 24, 2018
1 parent ea328ca commit 02d0a46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion plugins/channelrx/chanalyzer/chanalyzerplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

const PluginDescriptor ChannelAnalyzerPlugin::m_pluginDescriptor = {
QString("Channel Analyzer"),
QString("4.2.3"),
QString("4.2.4"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/channelrx/demodatv/atvdemodplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
const PluginDescriptor ATVDemodPlugin::m_ptrPluginDescriptor =
{
QString("ATV Demodulator"),
QString("4.2.3"),
QString("4.2.4"),
QString("(c) F4HKW for F4EXB / SDRAngel"),
QString("https://github.com/f4exb/sdrangel"),
true,
Expand Down
14 changes: 5 additions & 9 deletions sdrgui/dsp/scopevis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ void ScopeVis::processTrace(const SampleVector::const_iterator& cbegin, const Sa
}
else // this was the last trigger then start trace
{
m_traceStart = true; // start trace processing
m_traceStart = true; // start of trace processing
m_nbSamples = m_traceSize + m_maxTraceDelay;
m_triggerComparator.reset();
m_triggerState = TriggerTriggered;
Expand All @@ -378,15 +378,11 @@ void ScopeVis::processTrace(const SampleVector::const_iterator& cbegin, const Sa
}

++begin;
}
}
}
} // look for trigger
} // untriggered or delayed
} // triggering active

// trace process
if (m_glScope->getDataChanged()) // optimization: process trace only if required by glScope
{
m_triggerState = TriggerUntriggered;
}

if (m_triggerState == TriggerTriggered)
{
Expand All @@ -395,7 +391,7 @@ void ScopeVis::processTrace(const SampleVector::const_iterator& cbegin, const Sa
SampleVector::iterator mend = m_traceDiscreteMemory.current().current();
SampleVector::iterator mbegin = mend - count;

if (m_traceStart)
if (m_traceStart) // start of trace processing
{
// trace back
if (m_maxTraceDelay > 0)
Expand Down

0 comments on commit 02d0a46

Please sign in to comment.