Fixed alrge FFT size bug

This commit is contained in:
AlexandreRouma 2021-10-18 00:38:02 +02:00
parent ab1a482352
commit f539cfad32
2 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ inline void doZoom(int offset, int width, int outWidth, float* data, float* out,
if (offset < 0) { if (offset < 0) {
offset = 0; offset = 0;
} }
if (width > 65535) { if (width > 524288) {
width = 65535; width = 524288;
} }
float factor = (float)width / (float)outWidth; float factor = (float)width / (float)outWidth;

View File

@ -88,7 +88,7 @@ public:
devCount = bladerf_get_device_list(&devInfoList); devCount = bladerf_get_device_list(&devInfoList);
if (devCount < 0) { if (devCount < 0) {
spdlog::error("Could not list devices"); spdlog::error("Could not list devices {0}", devCount);
return; return;
} }
for (int i = 0; i < devCount; i++) { for (int i = 0; i < devCount; i++) {