1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00

Scope: clear display trace before update if trace time is 1s or higher (progressive display)

This commit is contained in:
f4exb 2018-10-27 19:45:42 +02:00
parent a2d8372262
commit f142c98e82

View File

@ -390,6 +390,14 @@ void ScopeVis::processTrace(const SampleVector::const_iterator& cbegin, const Sa
if (m_traceStart) // start of trace processing if (m_traceStart) // start of trace processing
{ {
// if trace time is 1s or more the display is progressive so we have to clear it first
float traceTime = ((float) m_traceSize) / m_sampleRate;
if (traceTime >= 1.0f) {
initTraceBuffers();
}
// process until begin point // process until begin point
if (m_maxTraceDelay > 0) { // trace back if (m_maxTraceDelay > 0) { // trace back