1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

Spectrum averaging: fixed average (4): fixed averaging combo index setting

This commit is contained in:
f4exb 2018-07-01 04:14:06 +02:00
parent 9913d550e0
commit 69ab133b6e

View File

@ -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);