mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 00:57:31 -05:00
Resolves #64 Persist last tuned frequency to tuner configurations
Task-Url: http://github.com/DSheirer/sdrtrunk/issues/issue/64
This commit is contained in:
@@ -36,7 +36,7 @@ import dsp.filter.hilbert.HilbertTransform;
|
||||
|
||||
/**
|
||||
* SDR Trunk
|
||||
* Copyright (C) 2015 Dennis Sheirer
|
||||
* Copyright (C) 2015-2016 Dennis Sheirer
|
||||
*
|
||||
* Ported from libairspy at:
|
||||
* https://github.com/airspy/host/tree/master/libairspy
|
||||
@@ -324,6 +324,8 @@ public class AirspyTunerController extends TunerController
|
||||
//linearity and sensitivity modes will automatically override
|
||||
//the custom values.
|
||||
setGain( airspy.getGain() );
|
||||
|
||||
setFrequencyCorrection( airspy.getFrequencyCorrection() );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
@@ -331,6 +333,15 @@ public class AirspyTunerController extends TunerController
|
||||
+ "airspy config", e );
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
setFrequency( airspy.getFrequency() );
|
||||
}
|
||||
catch( SourceException se )
|
||||
{
|
||||
//Do nothing, we couldn't set the frequency
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user