diff --git a/include/gui/glscope.h b/include/gui/glscope.h index 9dafc96ad..848e4e75d 100644 --- a/include/gui/glscope.h +++ b/include/gui/glscope.h @@ -77,7 +77,7 @@ public: int getTraceSize() const { return m_rawTrace[m_memTraceIndex - m_memTraceHistory].size(); } void setSampleRate(int sampleRate); - int getSampleRate() const { return m_sampleRate; } + int getSampleRate() const { return m_sampleRates[m_memTraceIndex - m_memTraceHistory]; } Mode getDataMode() const { return m_mode; } void connectTimer(const QTimer& timer);