fix bad plutosdr bandwidth selection at very high samplerates

This commit is contained in:
AlexandreRouma 2024-01-27 22:52:11 +01:00
parent 00e6832055
commit e6a02a3944

View File

@ -285,7 +285,7 @@ private:
iio_channel_attr_write_longlong(rxChan, "rf_bandwidth", bw);
}
else {
iio_channel_attr_write_longlong(rxChan, "rf_bandwidth", sampleRate);
iio_channel_attr_write_longlong(rxChan, "rf_bandwidth", std::min<int>(sampleRate, 52000000));
}
}