mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-17 23:28:50 -05:00
Scope: block incoming traces (trigger) while in trace memory
This commit is contained in:
parent
42ba2ca5a0
commit
dc16def6e3
@ -409,6 +409,22 @@ void ScopeVis::setOneShot(bool oneShot)
|
||||
}
|
||||
}
|
||||
|
||||
void ScopeVis::blockTrigger(bool blocked)
|
||||
{
|
||||
if (blocked)
|
||||
{
|
||||
m_triggerState = WaitForReset;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!m_triggerOneShot) {
|
||||
m_tracebackCount = 0;
|
||||
m_triggerState = Untriggered;
|
||||
m_triggerIndex = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool ScopeVis::nextTrigger()
|
||||
{
|
||||
if (m_triggerCount < m_triggerCounts[m_triggerIndex])
|
||||
|
@ -38,6 +38,7 @@ public:
|
||||
uint triggerCounts,
|
||||
uint traceSize);
|
||||
void setOneShot(bool oneShot);
|
||||
void blockTrigger(bool blecked);
|
||||
|
||||
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly);
|
||||
virtual void start();
|
||||
|
@ -782,7 +782,9 @@ void GLScopeGUI::on_memIndex_valueChanged(int value)
|
||||
|
||||
if(m_glScope != 0)
|
||||
{
|
||||
m_scopeVis->blockTrigger(value != 0);
|
||||
m_glScope->setMemHistoryShift(value);
|
||||
emit traceMemoryChanged(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,9 @@ public:
|
||||
|
||||
bool handleMessage(Message* message);
|
||||
|
||||
signals:
|
||||
void traceMemoryChanged(int);
|
||||
|
||||
private:
|
||||
Ui::GLScopeGUI* ui;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user