From f539cfad329859ffd0d99e1ae03dd06da35aadf7 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Mon, 18 Oct 2021 00:38:02 +0200 Subject: [PATCH] Fixed alrge FFT size bug --- core/src/gui/widgets/waterfall.cpp | 4 ++-- source_modules/bladerf_source/src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/gui/widgets/waterfall.cpp b/core/src/gui/widgets/waterfall.cpp index a2c5f501..07965c1b 100644 --- a/core/src/gui/widgets/waterfall.cpp +++ b/core/src/gui/widgets/waterfall.cpp @@ -30,8 +30,8 @@ inline void doZoom(int offset, int width, int outWidth, float* data, float* out, if (offset < 0) { offset = 0; } - if (width > 65535) { - width = 65535; + if (width > 524288) { + width = 524288; } float factor = (float)width / (float)outWidth; diff --git a/source_modules/bladerf_source/src/main.cpp b/source_modules/bladerf_source/src/main.cpp index 7e027273..ac0af123 100644 --- a/source_modules/bladerf_source/src/main.cpp +++ b/source_modules/bladerf_source/src/main.cpp @@ -88,7 +88,7 @@ public: devCount = bladerf_get_device_list(&devInfoList); if (devCount < 0) { - spdlog::error("Could not list devices"); + spdlog::error("Could not list devices {0}", devCount); return; } for (int i = 0; i < devCount; i++) {