1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Fix AirspyHF instant replay.

This commit is contained in:
srcejon 2023-12-01 11:52:55 +00:00
parent 6aeb914f22
commit 4208bcf1f4

View File

@ -292,7 +292,8 @@ int AirspyHFInput::getSampleRate() const
uint32_t AirspyHFInput::getSampleRateFromIndex(quint32 devSampleRateIndex) const
{
int index;
int index = (int) devSampleRateIndex;
if (devSampleRateIndex >= m_sampleRates.size()) {
index = m_sampleRates.size() - 1;
}