From 45c575588243f8c3e7dfb1ee811b8d1d0a71b75f Mon Sep 17 00:00:00 2001 From: ritt Date: Tue, 10 Aug 2021 15:30:01 +0200 Subject: [PATCH] Fixed issue with channel depth in 2048 bin mode --- software/drsosc/Osci.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/drsosc/Osci.cpp b/software/drsosc/Osci.cpp index 9ae9b09..7697236 100644 --- a/software/drsosc/Osci.cpp +++ b/software/drsosc/Osci.cpp @@ -1122,8 +1122,8 @@ double Osci::GetMinSamplingSpeed() int Osci::GetWaveformDepth(int channel) { - if (channel == 3 && m_clkOn && m_waveDepth > kNumberOfBins) - return m_waveDepth - kNumberOfBins; // clock chnnael has only 1024 bins + if (channel == 4 && m_clkOn && m_waveDepth > kNumberOfBins) + return m_waveDepth - kNumberOfBins; // clock channel has only 1024 bins return m_waveDepth; }