From 69ab133b6ef4e7b4b3f49771e0a2aef8890681e0 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 1 Jul 2018 04:14:06 +0200 Subject: [PATCH] Spectrum averaging: fixed average (4): fixed averaging combo index setting --- sdrgui/gui/glspectrumgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrgui/gui/glspectrumgui.cpp b/sdrgui/gui/glspectrumgui.cpp index 514634e99..fb2a9b30e 100644 --- a/sdrgui/gui/glspectrumgui.cpp +++ b/sdrgui/gui/glspectrumgui.cpp @@ -138,7 +138,7 @@ bool GLSpectrumGUI::deserialize(const QByteArray& data) d.readS32(19, &tmp, 0); m_averagingMode = tmp < 0 ? AvgModeMoving : tmp > 1 ? AvgModeFixed : (AveragingMode) tmp; d.readS32(20, &tmp, 0); - m_averagingIndex = getAveragingValue(tmp); + m_averagingIndex = getAveragingIndex(tmp); m_averagingNb = getAveragingValue(m_averagingIndex); m_glSpectrum->setWaterfallShare(waterfallShare);