mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Compare commits
2 Commits
v0.5.0-alp
...
v0.5.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88f124af9d | ||
|
|
d34460c4e3 |
@@ -33,7 +33,7 @@ repositories {
|
||||
maven { url "https://jitpack.io" }
|
||||
}
|
||||
|
||||
version = '0.5.0-alpha5'
|
||||
version = '0.5.0-alpha6'
|
||||
sourceCompatibility = '13'
|
||||
|
||||
sourceSets {
|
||||
|
||||
@@ -288,6 +288,8 @@ public class HackRFTunerController extends USBTunerController
|
||||
*/
|
||||
public void setLNAGain(HackRFLNAGain gain) throws UsbException
|
||||
{
|
||||
mLock.lock();
|
||||
|
||||
try
|
||||
{
|
||||
int result = readByte(Request.SET_LNA_GAIN, 0, gain.getValue(), true);
|
||||
@@ -398,8 +400,7 @@ public class HackRFTunerController extends USBTunerController
|
||||
}
|
||||
catch(UsbException e)
|
||||
{
|
||||
throw new SourceException("Error while applying tuner "
|
||||
+ "configuration", e);
|
||||
throw new SourceException("Error while applying tuner configuration", e);
|
||||
}
|
||||
|
||||
try
|
||||
@@ -413,8 +414,7 @@ public class HackRFTunerController extends USBTunerController
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new IllegalArgumentException("Invalid tuner configuration "
|
||||
+ "type [" + config.getClass() + "]");
|
||||
throw new IllegalArgumentException("Invalid tuner configuration type [" + config.getClass() + "]");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user