From e6a02a3944d5a7af2f7b7ee1023e909cb2a16e90 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sat, 27 Jan 2024 22:52:11 +0100 Subject: [PATCH] fix bad plutosdr bandwidth selection at very high samplerates --- source_modules/plutosdr_source/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source_modules/plutosdr_source/src/main.cpp b/source_modules/plutosdr_source/src/main.cpp index e6abc8dd..d0684758 100644 --- a/source_modules/plutosdr_source/src/main.cpp +++ b/source_modules/plutosdr_source/src/main.cpp @@ -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(sampleRate, 52000000)); } }