From 0498a48b93b2a12e80eb6504299f4eac32ce0979 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Tue, 27 Jul 2021 15:47:11 +0200 Subject: [PATCH 1/3] Fixed bug in source selection --- core/src/gui/menus/source.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/gui/menus/source.cpp b/core/src/gui/menus/source.cpp index 46dd9685..1afe0e07 100644 --- a/core/src/gui/menus/source.cpp +++ b/core/src/gui/menus/source.cpp @@ -76,6 +76,7 @@ namespace sourecmenu { auto it = std::find(sourceNames.begin(), sourceNames.end(), name); if (it == sourceNames.end()) { selectSource(sourceNames[0]); + return; } sourceId = std::distance(sourceNames.begin(), it); selectedSource = sourceNames[sourceId]; From 14fae89a0b427013f0fe1855db04a40040970672 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Tue, 27 Jul 2021 16:32:25 +0200 Subject: [PATCH 2/3] Added error message on SDRplay source when API isn't working --- sdrplay_source/src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdrplay_source/src/main.cpp b/sdrplay_source/src/main.cpp index c028dc68..29c32e31 100644 --- a/sdrplay_source/src/main.cpp +++ b/sdrplay_source/src/main.cpp @@ -116,7 +116,11 @@ public: cbFuncs.StreamACbFn = streamCB; cbFuncs.StreamBCbFn = streamCB; - sdrplay_api_Open(); + sdrplay_api_ErrT err = sdrplay_api_Open(); + if (err != sdrplay_api_Success) { + spdlog::error("Could not intiatialized the SDRplay API. Make sure that the service is running."); + return; + } sampleRate = 2000000.0; srId = 0; From 6dc24a7fc7a87464d6eab90fc1f297979639eafc Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Tue, 27 Jul 2021 18:09:47 +0200 Subject: [PATCH 3/3] Updated version number --- core/src/version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/version.h b/core/src/version.h index 9d1afaf6..7a2ed301 100644 --- a/core/src/version.h +++ b/core/src/version.h @@ -1,3 +1,3 @@ #pragma once -#define VERSION_STR "0.3.0_beta" \ No newline at end of file +#define VERSION_STR "1.0.0_rc1" \ No newline at end of file