Compare commits

...

2 Commits

Author SHA1 Message Date
Denny
88f124af9d Updates build to 0.5.0 Alpha 6. 2020-10-26 04:27:20 -04:00
Denny Sheirer
d34460c4e3 #986 Resolves issue with HackRF tuner not loading correctly. (#987)
Co-authored-by: Denny <denny@denny-desktop>
2020-10-26 04:26:29 -04:00
2 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ repositories {
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
} }
version = '0.5.0-alpha5' version = '0.5.0-alpha6'
sourceCompatibility = '13' sourceCompatibility = '13'
sourceSets { sourceSets {

View File

@@ -288,6 +288,8 @@ public class HackRFTunerController extends USBTunerController
*/ */
public void setLNAGain(HackRFLNAGain gain) throws UsbException public void setLNAGain(HackRFLNAGain gain) throws UsbException
{ {
mLock.lock();
try try
{ {
int result = readByte(Request.SET_LNA_GAIN, 0, gain.getValue(), true); int result = readByte(Request.SET_LNA_GAIN, 0, gain.getValue(), true);
@@ -398,8 +400,7 @@ public class HackRFTunerController extends USBTunerController
} }
catch(UsbException e) catch(UsbException e)
{ {
throw new SourceException("Error while applying tuner " throw new SourceException("Error while applying tuner configuration", e);
+ "configuration", e);
} }
try try
@@ -413,8 +414,7 @@ public class HackRFTunerController extends USBTunerController
} }
else else
{ {
throw new IllegalArgumentException("Invalid tuner configuration " throw new IllegalArgumentException("Invalid tuner configuration type [" + config.getClass() + "]");
+ "type [" + config.getClass() + "]");
} }
} }