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

ADSB demod: do not apply channel sample rate if it is 0. Fixes #1165

This commit is contained in:
f4exb 2022-03-08 00:57:07 +01:00
parent 74497a68a0
commit 82ebab8ac1

View File

@ -235,6 +235,10 @@ void ADSBDemodSink::applyChannelSettings(int channelSampleRate, int channelFrequ
<< " channelSampleRate: " << channelSampleRate
<< " channelFrequencyOffset: " << channelFrequencyOffset;
if (channelSampleRate == 0) {
return;
}
if ((channelFrequencyOffset != m_channelFrequencyOffset) ||
(channelSampleRate != m_channelSampleRate) || force)
{