Scope: reset trigger and traces samples index when trace size changes. Fixes #927

pull/935/head
f4exb 2021-06-19 12:38:20 +02:00
rodzic a25e668a62
commit 2e98fd0b17
2 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -158,6 +158,8 @@ void ScopeVis::configure(
{
setTraceSize(traceSize);
m_settings.m_traceLen = traceSize;
m_triggerState = TriggerUntriggered;
m_traces.resetControls();
}
if (m_timeBase != timeBase)

Wyświetl plik

@ -1059,6 +1059,13 @@ private:
}
}
void resetControls()
{
for (auto traceControl : m_tracesControl) {
traceControl->reset();
}
}
private:
float *m_x0;
float *m_x1;