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:
parent
6aeb914f22
commit
4208bcf1f4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user