1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -05:00

Mew scope: trace memory

This commit is contained in:
f4exb 2017-02-24 23:24:47 +01:00
parent f86d11e2d1
commit 86279bb1ee
2 changed files with 3 additions and 2 deletions

View File

@ -213,6 +213,7 @@ void ScopeVisNG::processMemoryTrace()
SampleVector::const_iterator mend = m_traceDiscreteMemory.at(m_currentTraceMemoryIndex).m_endPoint;
SampleVector::const_iterator mbegin = mend - m_traceSize;
SampleVector::const_iterator mbegin_tb = mbegin - m_maxTraceDelay;
m_nbSamples = m_traceSize + m_maxTraceDelay;
processTraces(mbegin_tb, mbegin, true); // traceback
processTraces(mbegin, mend, false);
@ -658,7 +659,7 @@ bool ScopeVisNG::handleMessage(const Message& message)
m_currentTraceMemoryIndex = memoryIndex;
if (m_currentTraceMemoryIndex > 0) {
processMemoryTrace();
}
}
}

View File

@ -433,7 +433,7 @@ private:
return new MsgScopeVisNGMemoryTrace(memoryIndex);
}
bool getMemoryIndex() const { return m_memoryIndex; }
uint32_t getMemoryIndex() const { return m_memoryIndex; }
private:
uint32_t m_memoryIndex;