From f3c5b2c31f7ded08bf0d67c308f962d97ea35f9b Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Tue, 26 Dec 2023 23:10:44 +0100 Subject: [PATCH 1/3] Fixed #1259 --- source_modules/hackrf_source/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source_modules/hackrf_source/src/main.cpp b/source_modules/hackrf_source/src/main.cpp index a70fd579..abb4bcc5 100644 --- a/source_modules/hackrf_source/src/main.cpp +++ b/source_modules/hackrf_source/src/main.cpp @@ -137,6 +137,10 @@ public: hackrf_device_list_t* _devList = hackrf_device_list(); for (int i = 0; i < _devList->devicecount; i++) { + // Skip devices that are in use + if (_devList->serial_numbers[i] == NULL) { continue; } + + // Save the device serial number devList.push_back(_devList->serial_numbers[i]); devListTxt += (char*)(_devList->serial_numbers[i] + 16); devListTxt += '\0'; From b1030cbdfb8b83486beecd0e1085a25fe74f3d85 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Wed, 27 Dec 2023 03:53:43 +0100 Subject: [PATCH 2/3] Implement #1260 --- source_modules/rtl_sdr_source/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source_modules/rtl_sdr_source/src/main.cpp b/source_modules/rtl_sdr_source/src/main.cpp index de6d5686..dba27610 100644 --- a/source_modules/rtl_sdr_source/src/main.cpp +++ b/source_modules/rtl_sdr_source/src/main.cpp @@ -523,8 +523,8 @@ private: RTLSDRSourceModule* _this = (RTLSDRSourceModule*)ctx; int sampCount = len / 2; for (int i = 0; i < sampCount; i++) { - _this->stream.writeBuf[i].re = (float)(buf[i * 2] - 127) / 128.0f; - _this->stream.writeBuf[i].im = (float)(buf[(i * 2) + 1] - 127) / 128.0f; + _this->stream.writeBuf[i].re = ((float)buf[i * 2] - 127.4) / 128.0f; + _this->stream.writeBuf[i].im = ((float)buf[(i * 2) + 1] - 127.4) / 128.0f; } if (!_this->stream.swap(sampCount)) { return; } } From 505cbb0ba2c728700cf896a3c132e6939bae2e3a Mon Sep 17 00:00:00 2001 From: Wil Clouser Date: Thu, 4 Jan 2024 11:48:39 -0800 Subject: [PATCH 3/3] add additional library to debian install instructions --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index a5dbac7a..36312fd9 100644 --- a/readme.md +++ b/readme.md @@ -44,7 +44,7 @@ Download the latest release from [the Releases page](https://github.com/Alexandr Then, run: ```sh -sudo apt install libfftw3-dev libglfw3-dev libvolk2-dev libsoapysdr-dev libairspyhf-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev +sudo apt install libfftw3-dev libglfw3-dev libvolk2-dev libzstd-dev libsoapysdr-dev libairspyhf-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev sudo dpkg -i sdrpp_debian_amd64.deb ```