mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 09:37:36 -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" }
|
maven { url "https://jitpack.io" }
|
||||||
}
|
}
|
||||||
|
|
||||||
version = '0.5.0-alpha5'
|
version = '0.5.0-alpha6'
|
||||||
sourceCompatibility = '13'
|
sourceCompatibility = '13'
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|||||||
@@ -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() + "]");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user