Skip to content

Commit

Permalink
#986 Resolves issue with HackRF tuner not loading correctly. (#987)
Browse files Browse the repository at this point in the history
Co-authored-by: Denny <denny@denny-desktop>
  • Loading branch information
DSheirer and Denny committed Oct 26, 2020
1 parent f4f3db7 commit d34460c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ public boolean getAmplifier()
*/
public void setLNAGain(HackRFLNAGain gain) throws UsbException
{
mLock.lock();

try
{
int result = readByte(Request.SET_LNA_GAIN, 0, gain.getValue(), true);
Expand Down Expand Up @@ -398,8 +400,7 @@ public void apply(TunerConfiguration config) throws SourceException
}
catch(UsbException e)
{
throw new SourceException("Error while applying tuner "
+ "configuration", e);
throw new SourceException("Error while applying tuner configuration", e);
}

try
Expand All @@ -413,8 +414,7 @@ public void apply(TunerConfiguration config) throws SourceException
}
else
{
throw new IllegalArgumentException("Invalid tuner configuration "
+ "type [" + config.getClass() + "]");
throw new IllegalArgumentException("Invalid tuner configuration type [" + config.getClass() + "]");
}
}

Expand Down

0 comments on commit d34460c

Please sign in to comment.