mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Scope: reset trigger and traces samples index when trace size changes. Fixes #927
This commit is contained in:
parent
a25e668a62
commit
2e98fd0b17
@ -158,6 +158,8 @@ void ScopeVis::configure(
|
||||
{
|
||||
setTraceSize(traceSize);
|
||||
m_settings.m_traceLen = traceSize;
|
||||
m_triggerState = TriggerUntriggered;
|
||||
m_traces.resetControls();
|
||||
}
|
||||
|
||||
if (m_timeBase != timeBase)
|
||||
|
@ -1059,6 +1059,13 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
void resetControls()
|
||||
{
|
||||
for (auto traceControl : m_tracesControl) {
|
||||
traceControl->reset();
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
float *m_x0;
|
||||
float *m_x1;
|
||||
|
Loading…
Reference in New Issue
Block a user