Compare commits

...

1 Commits

Author SHA1 Message Date
Denny Sheirer
fc13777211 #1456 Resolves issue with shutdown when no sdrplay api is available. Version update to 0.6.0 alpha-2 (#1457)
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
2023-02-19 10:18:19 -05:00
2 changed files with 21 additions and 14 deletions

View File

@@ -30,7 +30,7 @@ repositories {
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
} }
version = '0.6.0-alpha1' version = '0.6.0-alpha2'
//Java 19 is required for this version of the Project Panama preview/incubator feature //Java 19 is required for this version of the Project Panama preview/incubator feature
java { java {

View File

@@ -560,6 +560,8 @@ public class SDRplay
* Foreign Function support is implemented, but not sure. dls 1-Jan-2023 * Foreign Function support is implemented, but not sure. dls 1-Jan-2023
*/ */
public Status close() public Status close()
{
if(mSdrplayLibraryLoaded)
{ {
Status closeStatus; Status closeStatus;
@@ -577,6 +579,11 @@ public class SDRplay
mAvailable = false; mAvailable = false;
return closeStatus; return closeStatus;
} }
else
{
return Status.API_UNAVAILABLE;
}
}
/** /**
* Identifies the API version. * Identifies the API version.